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

  1. Newsgroups: alt.msdos.programmer
  2. Path: sparky!uunet!cs.utexas.edu!usc!sol.ctr.columbia.edu!sal.wisc.edu!rat!zeus!rmathews
  3. From: rmathews@zeus.calpoly.edu (Bob Mathews)
  4. Subject: Re: Need DOS batch help!
  5. Message-ID: <1992Aug13.221322.149050@zeus.calpoly.edu>
  6. Organization: California Polytechnic State University, San Luis Obispo
  7. References: <92225.09262732BFPQ3@CMUVM.CSV.CMICH.EDU> <1992Aug12.141526.25165@athena.mit.edu>
  8. Date: Thu, 13 Aug 1992 22:13:22 GMT
  9. Lines: 17
  10.  
  11. chanh@athena.mit.edu (Chanh N. Vuong) writes:
  12. >In article <92225.09262732BFPQ3@CMUVM.CSV.CMICH.EDU> Nathan Owen <32BFPQ3@CMUVM.CSV.CMICH.EDU> writes:
  13. >>I having a problem writing a batch file.  I need a batch file which will go
  14. >>to a c:\Temp directory and delete every file in the directory except for
  15. >>a file named gest.bat.  The batch must be written in such a way they the
  16. >>user will not get a message asking Yes/No (Y/N) in response to deleting
  17. >>the files , which limits your use of wildcard deletes like del *.*.
  18. >
  19. >Here goes:
  20. [suggested batch file deleted]
  21.  
  22. It'd be a lot easier to just change the attribute of gest.bat to read-only.
  23. Use attrib +r gest.bat or something like that.  If you don't have
  24. DOS Help!, you need it.
  25.  
  26. swehtam bob
  27.  
  28.