apr1985 Posted July 18, 2012 Posted July 18, 2012 Hello. I am testing my scripts on Windows 8 Release Preview (which I am guessing isnt supported by AutoIT yet). Most of it all seems to be working fine except for Run and RunWait commands used to kick off an exe. I can get the exe to start by doing RunWait(@comspec & "/c c:\prog\CLI.exe" , "c:\windows\system32", @SW_SHOW) but not RunWait("c:\prog\CLI.exe") - Which works on all other OS's. Has anyone else come across this problem and found a way to get it working? Cheers Adam
johnmcloud Posted July 18, 2012 Posted July 18, 2012 (edited) I can't test it, but what is the problem if this: RunWait(@comspec & "/c c:progCLI.exe" , "C:\Windows\System32\", @SW_SHOW) work? You can use @OSVersion: $var = "c:progCLI.exe" If @OSVersion = "Win_8" Then RunWait(@comspec & "/c " & $var, @WindowsDir & "system32", @SW_SHOW) Else RunWait($var) EndIf I think dev check it out when RTM goes out Edited July 18, 2012 by johnmcloud
apr1985 Posted July 18, 2012 Author Posted July 18, 2012 Cool, that seems like a sensible compromise, untill Win8 is completly supported Cheers Adam
Tripredacus Posted July 18, 2012 Posted July 18, 2012 Windows 8 changes how it looks for files, especially using the x64 version of a RP bulid. Then again, I use RunWait with @ComSpec for my Win8 apps. Twitter | MSFN | VGCollect
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