How do you run a program from the command prompt??
Say if i have a program called 18_3. My command prompt looks like this C:\Documents and settings\Administrator>.
This is a discussion on Command line arguments within the C++ Programming forums, part of the General Programming Boards category; How do you run a program from the command prompt?? Say if i have a program called 18_3. My command ...
How do you run a program from the command prompt??
Say if i have a program called 18_3. My command prompt looks like this C:\Documents and settings\Administrator>.
If the prog is located in that same directory then you just type in the name of the prog.
I used to be an adventurer like you... then I took an arrow to the knee.
Ok I'm still lost, Im using MSVS 6.0. I have a program called 18_3
It should copy test.txt to output_file_1.txt. Now 18_3 is waiting for three arguments I hope, but I don't know how to send them to it. At the command prompt I type in the name of the program and the names of the files which the program is waiting for. windows comes back with '18_3' is not recognized as an internal or external command, operable program or batch file. Not sure what I'm doing wrong. my book gives this as an example.
My exe was tucked away in the debug file, also had to get to the correct path in dos. Once I did that the program worked just fine!!