Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > Re: Batch files

Reply
Thread Tools

Re: Batch files

 
 
Mike Wahler
Guest
Posts: n/a
 
      07-11-2003

Mad <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) om...
> Does any one know a way of calling batch files and giving them paramaters

from c++

If you mean the 'batch' files of DOS or WIndows:

#include <cstdlib>

int main()
{
std::system("file.bat blah blah blah");
return 0;
}

-Mike



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Converting .py files to batch files. Matias Surdi Python 4 09-17-2008 06:07 PM
Re: Converting .py files to batch files. Chris Rebert Python 0 09-15-2008 06:30 PM
Running Batch Files using ASP .NET Stephen ASP .Net 2 12-22-2005 07:22 PM
Running batch files using Process class =?Utf-8?B?U3JlZWx1?= ASP .Net 1 07-28-2005 07:58 PM
Running Ant from BATCH FILES mel_palmeruk@yahoo.co.uk Java 1 06-09-2005 10:30 AM



Advertisments