Sign in to follow this  
Followers 0
behdadsoft

run cmd in 64 bit mode

2 posts in this topic

#1 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites



Find it.:)

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