home *** CD-ROM | disk | FTP | other *** search
/ Chip 1999 Extra / Chip_Extra_1999.iso / share / tools / winsec / winsecu.exe / _SETUP.1 / ws98win.bat < prev   
DOS Batch File  |  1998-09-30  |  2KB  |  62 lines

  1. echo off
  2.  
  3. echo Diese Batch-Datei setzt die Dateiattribute für die Dateien im
  4. echo Windows-Verzeichnis. Mit "ws98win.bat +" werden die Dateiattribute zum
  5. echo Schutz des Windows-Verzeichnises gesetzt. Mit "ws98win.bat -" wird die
  6. echo Sicherheit zurückgesetzt.
  7. echo Wenn Sie das Programm falsch gestartet haben können Sie jetzt mit "Strg-C"
  8. echo abbrechen
  9.  
  10.  
  11. rem Eventuell muß hier der Verzeichnisname für  "C:\WINDOWS" korrigiert werden an.
  12.  
  13. pause
  14. echo Dies kann einige Minuten dauern....
  15.  
  16. if (%1)==() goto FEHLER
  17. if (%1)==(+) goto PLUS
  18. if (%1)==(-) goto MINUS
  19. :PLUS
  20. @echo off
  21. attrib +r +h c:\windows\*.* 
  22. attrib +r +h c:\windows\system\*.* 
  23. attrib +r +h c:\windows\command\*.* 
  24. attrib +r +h c:\windows\inf\*.*
  25. attrib +r +h c:\windows\sendto\*.*
  26. attrib +r +h c:\windows\shellnew\*.*
  27. attrib +r +h c:\windows
  28. attrib +r +h c:\windows\system 
  29. attrib +r +h c:\windows\command 
  30. attrib +r +h c:\windows\inf
  31. attrib +r +h c:\windows\sendto
  32. attrib +r +h c:\windows\shellnew
  33.  
  34. echo Das C:\ERD Verzeichnis wird nun geschⁿtzt
  35.  
  36. attrib +r +h c:\ERD\*.* /s
  37. attrib +r +h c:\ERD 
  38.  
  39. echo Gleich fertig.....
  40. attrib -r -h c:\*.swp /S
  41. attrib -r -h c:\windows\*.pwl
  42. goto ENDE
  43. :MINUS
  44. attrib -r -h c:\windows\*.* 
  45. attrib -r -h c:\windows\system\*.* 
  46. attrib -r -h c:\windows\command\*.* 
  47. attrib -r -h c:\windows\inf\*.*
  48. attrib -r -h c:\windows\sendto\*.*
  49. attrib -r -h c:\windows\shellnew\*.*
  50. attrib -r -h c:\windows
  51. attrib -r -h c:\windows\system 
  52. attrib -r -h c:\windows\command 
  53. attrib -r -h c:\windows\inf
  54. attrib -r -h c:\windows\sendto
  55. attrib -r -h c:\windows\shellnew
  56. attrib -r -h c:\erd\*.*
  57. attrib -r -h c:\erd 
  58. goto ENDE
  59. :FEHLER
  60. echo Sie müssen das Programm mit "ws98win.bat +" oder "ws98win.bat -" starten
  61. :ENDE
  62.