Emergency!!! To anyone who remebers how to write DOS Batch files!

piku

Diamond Member
May 30, 2000
4,049
1
0
ehh... I never made any with user input, and if I did I don't remember :)

In fact, I don't think batch files could get as advanced as asking for drives and such. They are just strings of command prompt instructions.

Of course, someone will prove me wrong :)
 

NikPreviousAcct

No Lifer
Aug 15, 2000
52,763
1
0
type "edit batchfile.bat"

where batchfile is the name of the bat.

Then type in what you want to do.

Example:
Running Visual Basic

type edit VB.bat

<<file opens>>

cd/

cd/windows/progra~1/VisualBas~1/

VB.exe


<<save file>>
<<close file>>


run by typing &quot;VB&quot; in DOS (I think from any directory, but will work from the root directory