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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dos command

Status
Not open for further replies.

Frush

Programmer
Jun 27, 2002
75
CA
I was wondering how to if its possible to use dos commands in Builder C++. To be specific i need to call a batch file with 2 parameters (c++ variables).
 
#include <process.h>

....

char doscommand[] = &quot;dir c:\\&quot;; // or other dos command
system ( doscommand );

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top