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

How to run batch file through c++ program??

Status
Not open for further replies.

Vallurupa

Programmer
Oct 17, 2001
38
US
hi
Actually I have to start some batch file E:\GladisNT\RunGladisUAT.cmd in the c++ code.
ShellExecute(NULL,"open","E:\GladisNT\RunGladisUAT.cmd","YOUR_PARAMETER",NULL,SW_SHOW);
I am trying with this but i am not getting any result. Is there any utility to start any .cmd file inside the code.

Please let me know.

Thanks

Tiaa

tiaacus@yahoo.com
 
Try to replace YOUR_PARAMETER by NULL,normaly it should work.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top