home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!rpi!crdgw1!rdsunx.crd.ge.com!nnn!beynon
- From: beynon@nnn.NoSubdomain.NoDomain (Michael D. Beynon)
- Newsgroups: alt.msdos.programmer
- Subject: Re: DOS batch help!
- Message-ID: <1992Aug13.134754.15600@crd.ge.com>
- Date: 13 Aug 92 13:47:54 GMT
- Sender: usenet@crd.ge.com (Required for NNTP)
- Reply-To: beynon@nnn.crd.ge.com
- Organization: GE Corporate R&D Center, Schenectady, NY
- Lines: 18
- Nntp-Posting-Host: nnn.crd.ge.com
-
- Just a note ...
-
- The fastest, easiest way to delete files:
-
- Not --> for %l in (*.*) do del %l
-
- Not --> echo y >y.dat
- del *.* <y.dat > nul
-
- Yes --> echo y | del *.* > nul
-
- I'll admit it is very much like the 2nd one listed, but it has a very good
- advantage... Not temporary file y.dat is created. It's just cleaner.
-
- Thanks.
-
- Michael D. Beynon
- beynon@nnn.crd.ge.com
-