What would the syntax be for an open file command to only open that file if it is a (x86 or x64) OS.
Professional Software Development Tools
What would the syntax be for an open file command to only open that file if it is a (x86 or x64) OS.
Here you are:
output enhanced with AMS Code PrettyCode: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