Jump to content
Sign in to follow this  
apr1985

RunWait command on Windows 8

Recommended Posts

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

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

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...