home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / alt / msdos / programm / 2183 < prev    next >
Encoding:
Text File  |  1992-08-12  |  1.6 KB  |  38 lines

  1. Newsgroups: alt.msdos.programmer
  2. Path: sparky!uunet!nevada.edu!jimi!mighty-joe.isri.unlv.edu!grover
  3. From: grover@mighty-joe.isri.unlv.edu (Kevin Grover)
  4. Subject: Re: Need DOS batch help!
  5. Message-ID: <1992Aug12.174850.16556@unlv.edu>
  6. Sender: news@unlv.edu (News User)
  7. Reply-To: grover@isri.unlv.edu
  8. Organization: Information Science Research Institute (UNLV-ISRI)
  9. References:  <92225.09262732BFPQ3@CMUVM.CSV.CMICH.EDU>
  10. Date: Wed, 12 Aug 92 17:48:50 GMT
  11. Lines: 25
  12.  
  13. In article <92225.09262732BFPQ3@CMUVM.CSV.CMICH.EDU>, Nathan Owen <32BFPQ3@CMUVM.CSV.CMICH.EDU> writes:
  14. ) Organization: Central Michigan University
  15. ) Date: Wednesday, 12 Aug 1992 09:26:27 EDT
  16. ) From: Nathan Owen <32BFPQ3@CMUVM.CSV.CMICH.EDU>
  17. ) Subject: Need DOS batch help!
  18. ) I having a problem writing a batch file.  I need a batch file which will go
  19. ) to a c:¢Temp directory and delete every file in the directory except for
  20. ) a file named gest.bat.  The batch must be written in such a way they the
  21. ) user will not get a message asking Yes/No (Y/N) in response to deleting
  22. ) the files , which limits your use of wildcard deletes like del *.*.
  23.  
  24. If your using 4DOS/NDOS you can use:
  25.  
  26. except (C:\233Temp\gest.bat) del /q/y c:\233Temp\*.*
  27.  
  28. /y forces Y (i.e. or are not asked if your sure)
  29. /q means quite mode (i.e. no info on files being deleted)
  30.  
  31. -- 
  32. --------------------------------------------------------------------------
  33.  Kevin O. Grover      | UNLV Computer Science and Electrical Engineering
  34.  grover@isri.unlv.edu | ISRI - Information Science Research Institute
  35.  CServe: [73627,1677] | 4505 S. Maryland Parkway, Las Vegas NV 89154-1017
  36.