Article View: alt.msdos.programmer
Article #384Re: Need DOS batch help!
From: Bob Mathews
Date: Thu, 13 Aug 1992 22:13
Date: Thu, 13 Aug 1992 22:13
16 lines
1242 bytes
1242 bytes
chanh@athena.mit.edu (Chanh N. Vuong) writes: >In article <92225.09262732BFPQ3@CMUVM.CSV.CMICH.EDU> Nathan Owen <32BFPQ3@CMUVM.CSV.CMICH.EDU> writes: >>I having a problem writing a batch file. I need a batch file which will go >>to a c:\Temp directory and delete every file in the directory except for >>a file named gest.bat. The batch must be written in such a way they the >>user will not get a message asking Yes/No (Y/N) in response to deleting >>the files , which limits your use of wildcard deletes like del *.*. > >Here goes: [suggested batch file deleted] It'd be a lot easier to just change the attribute of gest.bat to read-only. Use attrib +r gest.bat or something like that. If you don't have DOS Help!, you need it. swehtam bob
Technical Details
Message-ID:
<1992Aug13.221322.149050@zeus.calpoly.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!usc!sol.ctr.columbia.edu!sal.wisc.edu!rat!zeus!rmathewsReferences:
<92225.09262732BFPQ3@CMUVM.CSV.CMICH.EDU> <1992Aug12.141526.25165@athena.mit.edu>Show Full Headers
Complete Article Headers
Newsgroups: alt.msdos.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!usc!sol.ctr.columbia.edu!sal.wisc.edu!rat!zeus!rmathews From: rmathews@zeus.calpoly.edu (Bob Mathews) Subject: Re: Need DOS batch help! Message-ID: <1992Aug13.221322.149050@zeus.calpoly.edu> Organization: California Polytechnic State University, San Luis Obispo References: <92225.09262732BFPQ3@CMUVM.CSV.CMICH.EDU> <1992Aug12.141526.25165@athena.mit.edu> Date: Thu, 13 Aug 1992 22:13:22 GMT Lines: 17