home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / pc / doshelp / helpsb.zoo / help / del / examples.hlp next >
Encoding:
Text File  |  1989-01-01  |  1.0 KB  |  26 lines

  1. SAMPLE DEL command          | Comments about the output
  2.  
  3.   DEL C:\PROGRAMS\TUTOR.EXE    This command would remove the TUTOR.EXE file
  4.                 from the PROGRAMS directory on drive C:.
  5.  
  6.   DEL *.TXT            This removes all files with the .TXT
  7.                 extension from the current default directory.
  8.  
  9.   DEL *.*            Removes all files in the current directory.
  10. Are you sure (Y/N)? N
  11.  
  12.   DEL \PROGRAMS            (Equivalent to the command DEL \PROGRAMS\*.*)
  13. Are you sure (Y/N)? N        Removes all files in the subdirectory
  14.                 PROGRAMS of the default disk drive.
  15.  
  16.   COPY BLANKS TUTOR.EXE        If the file BLANKS was all " " and was larger
  17.   DEL TUTOR.EXE            than the file TUTOR.EXE, then the contents of
  18.                 TUTOR.EXE would really be destroyed. Just DEL
  19.                 by itself won't destroy the contents of a file.
  20.  
  21.   REM > EMPTYFIL        This example uses redirection and the fact
  22.                 that the REM internal command produces no
  23.                 output to create an empty file, or keep an
  24.                 existing file but lose the contents (which 
  25.                 is sometimes useful). 
  26.