is it possible to make a .bat file in c++ and run it ?
and if so, can you guide me a bit cause i have been googling this for weeks now
Printable View
is it possible to make a .bat file in c++ and run it ?
and if so, can you guide me a bit cause i have been googling this for weeks now
> is it possible to make a .bat file in c++ and run it ?
Yes.
> and if so, can you guide me a bit cause i have been googling this for weeks now
With what?
Creating the file, or running it?
Quote:
Originally Posted by Salem
i think i can run it with
right ?Code:system("c:\\this\\is\\where\\my\\batfile\\is.bat");
if not i need help with both :)
yes, the system command can run the bat, and yes, C++ can create a batch file. basic fstream commands. Check here http://www.cprogramming.com/tutorial/lesson10.html and instead of .txt use .bat ... your on your own after that, thats all the info you need