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

How do I execute a batch file with WinExec?

Status
Not open for further replies.

jvff

Programmer
Apr 1, 2001
64
BR
Hello,
I need to execute lots of batch files but I don't know how to do it. I thought maybe it will be WinExec("command c:\batch.bat", SW_NORMAL) but I'm not sure. Is that how you do it? Thank you,

JVFF
 
Try it. Id do not know if it will help. I didn't see any samples to execute batch files.
WinExec("c:\\batch.bat",0); John Fill
1c.bmp


ivfmd@mail.md
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top