goodbyeplanet Posted January 19, 2011 Share Posted January 19, 2011 (edited) I know how to do this: $osversion=@OSVersion if $osversion=WIN_7 then run(buses.exe) endif but is there a way of somehow reading an exe file then output to say .."this file is not supported on this system"..I mean by first reading the details of the exe file itself then making a conclusion.. Edited January 19, 2011 by goodbyeplanet Link to comment Share on other sites More sharing options...
sleepydvdr Posted January 19, 2011 Share Posted January 19, 2011 Are you going to have multiple executables to run (such as buses.exe for 32 bit and 64 bit OSes)? If so, why don't you do an IF AND statement? If $osversion="WIN_7" AND @OSarch = "X64" then run(buses_x64.exe) Else If $osversion="WIN_7" AND @OSarch = "X86" run(buses_x86.exe) EndIf As for reading whether an executable is compatible with the system, I don't think AutoIt can do that. #include <ByteMe.au3> Link to comment Share on other sites More sharing options...
goodbyeplanet Posted January 19, 2011 Author Share Posted January 19, 2011 As for reading whether an executable is compatible with the system, I don't think AutoIt can do that.thats exactly what i was asking to know and thank you for your clarification as well as your suggestion.... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now