Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 291
  • Last Modified:

CreateProcess w/ DOS

This works fine:
CreateProcess(NULL,"test.bat",NULL,NULL,FALSE,NORMAL_PRIORITY_CLASS,NULL,NULL,&StartInfo,&pInfo);

However, if I replace "test.bat" with "start /b /wait test.bat", nothing happens..
why and how?
Thanks.
0
j4months
Asked:
j4months
1 Solution
 
jkrCommented:
>>However, if I replace "test.bat" with "start /b /wait test.bat", nothing happens..

"start" is not a standalone executable, it's a shell builtin command. However,

cmd.exe /c start /b /wait test.bat

or

command.com /c start /b /wait test.bat

should do it...


0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now