home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: alt.msdos.programmer
- Path: sparky!uunet!nevada.edu!jimi!mighty-joe.isri.unlv.edu!grover
- From: grover@mighty-joe.isri.unlv.edu (Kevin Grover)
- Subject: Re: Need DOS batch help!
- Message-ID: <1992Aug12.174850.16556@unlv.edu>
- Sender: news@unlv.edu (News User)
- Reply-To: grover@isri.unlv.edu
- Organization: Information Science Research Institute (UNLV-ISRI)
- References: <92225.09262732BFPQ3@CMUVM.CSV.CMICH.EDU>
- Date: Wed, 12 Aug 92 17:48:50 GMT
- Lines: 25
-
- In article <92225.09262732BFPQ3@CMUVM.CSV.CMICH.EDU>, Nathan Owen <32BFPQ3@CMUVM.CSV.CMICH.EDU> writes:
- ) Organization: Central Michigan University
- ) Date: Wednesday, 12 Aug 1992 09:26:27 EDT
- ) From: Nathan Owen <32BFPQ3@CMUVM.CSV.CMICH.EDU>
- ) Subject: Need DOS batch help!
- )
- ) 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 *.*.
- )
-
- If your using 4DOS/NDOS you can use:
-
- except (C:\233Temp\gest.bat) del /q/y c:\233Temp\*.*
-
- /y forces Y (i.e. or are not asked if your sure)
- /q means quite mode (i.e. no info on files being deleted)
-
- --
- --------------------------------------------------------------------------
- Kevin O. Grover | UNLV Computer Science and Electrical Engineering
- grover@isri.unlv.edu | ISRI - Information Science Research Institute
- CServe: [73627,1677] | 4505 S. Maryland Parkway, Las Vegas NV 89154-1017
-