behdadsoft 1 Posted October 18, 2015 (edited) Hi.I wantif @OS = "X64" then run cmd.exe at "C:\windows\SysWOW64"elserun 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 ", "") EndIfThanks. Edited October 18, 2015 by behdadsoft Share this post Link to post Share on other sites