Gervase Markham: Top 50 DOS Problems Solved: Whoops, I Deleted Everything |
Q: I accidentally deleted all the files in the root directory of my hard disk for the second time this month. I managed to reinstall everything, but is there a way of avoiding the problem?
A: There are two approaches you could try, both of which have applications for other things too:
ATTRIB +R filename
The +R switch means “make this file read-only”.
…
This batch file has a useful enhancement beyond the precautionary message. You can use it to specify multiple files, for example:
DF *.BAK FRED.BAS ?.DOC
With one command this would delete all .BAK files, FRED.BAS, and all .DOC files whose names begin with a single letter.
A delete command which takes multiple arguments – wow…
http://feedproxy.google.com/~r/HackingForChrist/~3/yefHIhWJGrU/
Комментировать | « Пред. запись — К дневнику — След. запись » | Страницы: [1] [Новые] |