Sign in to follow this  
Followers 0
apr1985

RunWait command on Windows 8

4 posts in this topic

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

Share this post


Link to post
Share on other sites



#2 ·  Posted (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 by johnmcloud

Share this post


Link to post
Share on other sites

Cool, that seems like a sensible compromise, untill Win8 is completly supported :)

Cheers

Adam

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0