home *** CD-ROM | disk | FTP | other *** search
- SAMPLE DEL command | Comments about the output
-
- DEL C:\PROGRAMS\TUTOR.EXE This command would remove the TUTOR.EXE file
- from the PROGRAMS directory on drive C:.
-
- DEL *.TXT This removes all files with the .TXT
- extension from the current default directory.
-
- DEL *.* Removes all files in the current directory.
- Are you sure (Y/N)? N
-
- DEL \PROGRAMS (Equivalent to the command DEL \PROGRAMS\*.*)
- Are you sure (Y/N)? N Removes all files in the subdirectory
- PROGRAMS of the default disk drive.
-
- COPY BLANKS TUTOR.EXE If the file BLANKS was all " " and was larger
- DEL TUTOR.EXE than the file TUTOR.EXE, then the contents of
- TUTOR.EXE would really be destroyed. Just DEL
- by itself won't destroy the contents of a file.
-
- REM > EMPTYFIL This example uses redirection and the fact
- that the REM internal command produces no
- output to create an empty file, or keep an
- existing file but lose the contents (which
- is sometimes useful).