Hi, im relatively new to C++ and recently i have been writing a program that requires the use of a batch file. However, I'm not so sure how i can get the program to run the batch file. I tried using:
system ("C://WINDOWS//system32//cmd.exe C://Documents and Settings//User1//desktop//file.bat");
however that line simply opens up cmd.exe and i want the program to open it up without requiring the user to enter the name of the file.
Can anyone help?