Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Executing a DOS batch file from C++

Status
Not open for further replies.

pipk

Programmer
Feb 20, 2001
455
GB
Greetings all.

Just a quick question.
Is there a function or API that allows me to execute a .bat file from within a Visual C++ program? And will it take a path decsription as an argument?

HTH

Cheers

pipk[hammer]

 
Perhaps ShellExecute() function will do this for you.

[flush2]
tellis.gif

programmer (prog'ram'er), n A hot-headed, anorak wearing, pimple-faced computer geek.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top