home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / alt / msdos / programm / 2192 < prev    next >
Encoding:
Internet Message Format  |  1992-08-13  |  885 b 

  1. Path: sparky!uunet!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!rpi!crdgw1!rdsunx.crd.ge.com!nnn!beynon
  2. From: beynon@nnn.NoSubdomain.NoDomain (Michael D. Beynon)
  3. Newsgroups: alt.msdos.programmer
  4. Subject: Re: DOS batch help!
  5. Message-ID: <1992Aug13.134754.15600@crd.ge.com>
  6. Date: 13 Aug 92 13:47:54 GMT
  7. Sender: usenet@crd.ge.com (Required for NNTP)
  8. Reply-To: beynon@nnn.crd.ge.com
  9. Organization: GE Corporate R&D Center, Schenectady, NY
  10. Lines: 18
  11. Nntp-Posting-Host: nnn.crd.ge.com
  12.  
  13. Just a note ...
  14.  
  15. The fastest, easiest way to delete files:
  16.  
  17.   Not  -->      for %l in (*.*) do del %l
  18.  
  19.   Not  -->      echo y >y.dat
  20.                 del *.* <y.dat > nul
  21.  
  22.   Yes  -->      echo y | del *.* > nul
  23.  
  24. I'll admit it is very much like the 2nd one listed, but it has a very good
  25. advantage...  Not temporary file y.dat is created.  It's just cleaner.
  26.  
  27. Thanks.
  28.  
  29. Michael D. Beynon
  30. beynon@nnn.crd.ge.com
  31.