Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 2 of 2
  1. #1
    Join Date
    May 2007
    Posts
    4

    Open file Command to Distinguish between (x86 or x64) OS

    What would the syntax be for an open file command to only open that file if it is a (x86 or x64) OS.

  2. #2
    Join Date
    Apr 2007
    Location
    Mar Sara
    Posts
    292
    Here you are:
    Code:
    if System.Is64BitOS() == true then 
    	--[[
    		you can use File.Run, too, but if you don't need to get the return code
    		use Shell.Execute as File.Run can fail on Vista because of UAC
    	--]]
    	Shell.Execute( "AutoPlay\\Docs\\x64.exe", "open", "", "", SW_SHOWNORMAL); 
    else 
    	Shell.Execute( "AutoPlay\\Docs\\x86.exe", "open", "", "", SW_SHOWNORMAL); 
    end
    output enhanced with AMS Code Pretty

Similar Threads

  1. Best way to share custom buttons with the group?
    By mwreyf1 in forum AutoPlay Media Studio 6.0
    Replies: 10
    Last Post: 04-28-2010, 01:29 PM
  2. Open PowerPoint file to a specific slide
    By Echo S in forum AutoPlay Media Studio 5.0
    Replies: 7
    Last Post: 02-26-2004, 06:17 PM
  3. HOWTO: Open an HTML Help File to a Specific Topic
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-01-2002, 02:24 PM
  4. Replies: 0
    Last Post: 08-17-2000, 02:29 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts