Jump to content

run cmd in 64 bit mode


Recommended Posts

Hi.

I want

if @OS = "X64" then run cmd.exe at "C:\windows\SysWOW64"

else

run cmd.exe at "C:\windows\System32"

for this work I use below code for do this but always run cmd.exe at System32 folder. how can solve this problem?

if @OSArch = "X86" Then
    RunWait(@ComSpec & " /k ", "")
Else
    RunWait(@ComSpec & " /k ", "")
EndIf

Thanks.

Edited by behdadsoft
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...