pramod.s Posted January 25, 2013 Share Posted January 25, 2013 Reposting the question as the last thread was of status Solved : Using system() script function, I want to run more than one command, but as I run the 1st one the unigine holds the resource and my 2nd command dosent execute. Also if I try to use "start" command its not behaving as expected.(i.e its not opening a new window) system("start cmd /K \"cd /d c:/somefolder\""); Also writing multiple commands in single statement using & is not working. Please prompt me if I am doing something wrong. Link to comment
frustum Posted January 25, 2013 Share Posted January 25, 2013 Try the following code: system("cmd.exe /c start cmd.exe /K \"cd /d c:/somefolder\""); Link to comment
Recommended Posts