home *** CD-ROM | disk | FTP | other *** search
- SAMPLE command and results | Comments about the output
-
- :DEL1 Assume that you wanted to be able to use DEL
- IF x%1==x GOTO ALLDONE with more than one filename. This BATCH file
- DEL %1 would use the first value to delete a file,
- SHIFT and then shift the next value into first place,
- GOTO DEL1 and continue until all files had been deleted.
- :ALLDONE
- You will see these lines appear on the screen
- :LOOP over and over until you break the BATCH
- REM This is an endless loop processing with Ctrl-C or Ctrl-Break. Notice
- GOTO loop that the label line must begin with a colon,
- but upper and lower case do not matter.
-
- : loop This loop in a BATCH file will slowly fill up
- ECHO HI >> filler your disk with a string of "HI"s. Only a
- GOTO loop Ctrl-Break or Ctrl-C entered from the keyboard
- will stop the loop.