Batch Files Activity

 

DOS Batch Files

Go to http://home.att.net/~gobruen/progs/dos_batch/dos_batch.html and answer the following questions regarding batch files.

1. What is a batch file and why would you create one?
2. What is the file extension of a batch file?
3. Create your own batch file to show all the files on your floppy disk. Save the file as d.bat on your floppy drive. What DOS command will you use to list all of the files in a folder?
4. What is the function of a REM statement in a batch file?
5. What does the /y switch do in the deltree command?
6. What does echo off prevent?


Now go to the following site and answer these next questions
http://courses.wccnet.org/computer/mod/q11hd.htm

1. What two programs should you use to write batch files? Why?
2. What does the /o switch do in the dir command?
3. What comments should be added to all batch files you create?

Review
On your floppy disk create the following folders:
CompRep and CompNet
Place the following folders in the CompNet folder
Ping, Dos and WAN
Place a folder in the WAN folder called LAN.

Use the tree command to show your directory structure to your instructor for teacher check.

Show your answers to these questions and your batch file to your instructor for teacher check.