🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.msdos.programmer
Article #379

Re: DOS batch help!

#379
From: Michael D. Beynon
Date: Thu, 13 Aug 1992 13:47
18 lines
915 bytes
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
Technical Details
Message-ID: <1992Aug13.134754.15600@crd.ge.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!rpi!crdgw1!rdsunx.crd.ge.com!nnn!beynon

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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