🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ibm.pc.programmer
Article #809

Re: DOS Batch Programming

#809
From: Duane L. Rezac
Date: Fri, 29 Jun 1990 11:56
37 lines
1908 bytes
From article <1990Jun24.043414.24256@caen.engin.umich.edu>, by mrice@caen.engin.umich.edu (Michael Rice):
> 
> Hi.  I would like to know if the following can be done?
> I have a batch file that does a DEL subdirectory
> where subdirectory is some temporary directory.  The problem is
> DOS asks the question about "All files will be deleted Are you
> sure? "
> 
> Well of course I am sure, and this message just makes the batch file
> a lot less elegant and not as automatic as I would like.  Is there
> a way to bypass this or supply the answer from the batch file? I tried
> redirecting it to NUL but this only suppresses the message not the
> pause for the Y/N response.  Any suggestions will be much appreciated.
> 
>


It's easy to do, we do it all the time here. just create a file in root (or 
somewhere in the path) called y.dat. It should contain only a "Y". then 
redirect this as input (i.e del *.* <y.dat) . Y.dat will feed the Y to    
the Y/N question and the command will continue. 




Duane L. Rezac


--
Verse of the Hour:
"This is my commandment, That ye love one another, as I have loved you".
    John 15:12
-- 
+-----------------------+---------------------------------------------------+
| Duane L. Rezac |These views are my own, and NOT representitive of my place|
| dsacg1!dcscg1!drezac    drezac@dcscg1.dcsc.dla.mil      of Employment.    |
+-----------------------+---------------------------------------------------+
Technical Details
Message-ID: <835@dcsc.dla.mil>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!dsac.dla.mil!dcsc.dla.mil!drezac
References: <1990Jun24.043414.24256@caen.engin.umich.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!dsac.dla.mil!dcsc.dla.mil!drezac
From: drezac@dcsc.dla.mil (Duane L. Rezac)
Newsgroups: comp.sys.ibm.pc.programmer
Subject: Re: DOS Batch Programming
Message-ID: <835@dcsc.dla.mil>
Date: 29 Jun 90 11:56:36 GMT
References: <1990Jun24.043414.24256@caen.engin.umich.edu>
Organization: Defense Construction Supply Center, Columbus
Lines: 37