Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!magnus.ircc.ohio-state.edu!zaphod.mps.ohio-state.edu!samsung!uunet!maverick.ksu.ksu.edu!hoss!fergvax!vandevek From: vandevek@fergvax.unl.edu (James M. VandeVegt) Newsgroups: comp.os.msdos.misc Subject: Re: Question on batch files Message-ID: <1991Feb10.215519.5332@hoss.unl.edu> Date: 10 Feb 91 21:55:19 GMT References: <7471@jhunix.HCF.JHU.EDU> <4984@umbc3.UMBC.EDU> Sender: news@hoss.unl.edu (Network News Administer) Distribution: usa Organization: Comp Sci and Engr, Univ. of Nebr. Lines: 36 In article <4984@umbc3.UMBC.EDU> cs422122@umbc5.umbc.edu.UUCP (cs422122) writes: >In article <7471@jhunix.HCF.JHU.EDU> usagi@jhunix.hcf.jhu.edu (Erin Sasaki) writes: >>Hello -- >> I have a Dell System 310 running MS-DOS 4.0, and I have a quick >>question. I am interested in being able to delete entire directories >>within a batch file - without having to type: >> >> del file1 >> del file2 ... etc. >> >> So - I was going to use the command del *.* in the batch file. >>However, I would like to disable the MS-DOS verify (in this case only). >>Is there a quick way to do this? >> -- Erin Sasaki >> usagi@jhunix.hcf.jhu.edu > >echo y | del *.* (BE CAREFUL! This automatically answers Y to the > "Are you sure?" prompt.) > Alternately, in batch mode: for %%a in (*.*) do del %a In interactive processing: for %a in (*.*) do del %a same warning applies, this WILL DELETE every file in the directory. > >############################################################################### ># Mike Reese # Mail: mzr@detrick-hsc.army.mil # "Make it so!" # ># US Army # Phone: (301)663-2081 # --Jean Luc Picard # >############################################################################### | James M. VandeVegt | University of Nebraska | | vandevek@fergvax.unl.edu | Computer Science and Engineering | ---------------------------------------------------------------------- | Insert standard disclaimer here. |