OLDCODGER88
Jan 22, 2007, 09:26 PM
How do I make a batch file in dos that will open a program.
I need to name the file S
The file is acct\prog\solomon\solomon
I have this in one PC but forgot how it create the command.
colbtech
Jan 23, 2007, 03:52 AM
Open a DOS window.
At the command prompt, type "Copy Con: S.bat [Return]"
Presuming the file you wish to run is on C:
Type "C:\acct\prog\solomon\solomon.exe"
Press [CTRL Z] together, then press [Return]
You now have a file titled S.bat (in my case it is on the Desktop), but surely it is easier just to create a shortcut to the .exe and put that on the desktop??
If you want to use an editor rather than type direct from the keyboard. Type Edit filename then press [Return]
ScottGem
Jan 23, 2007, 07:25 AM
You can also use Notepad or any of a load of text editors to do this. Just save the file as a plain text file with a .BAT extension.