Solved

CreateProcess w/ DOS

Posted on 2002-03-15
1
284 Views
Last Modified: 2008-02-20
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
Comment
Question by:j4months
1 Comment
 
LVL 86

Accepted Solution

by:
jkr earned 50 total points
ID: 6867996
>>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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question