home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 1999 Extra
/
Chip_Extra_1999.iso
/
share
/
tools
/
winsec
/
winsecu.exe
/
_SETUP.1
/
ws98win.bat
< prev
Wrap
DOS Batch File
|
1998-09-30
|
2KB
|
62 lines
echo off
echo Diese Batch-Datei setzt die Dateiattribute für die Dateien im
echo Windows-Verzeichnis. Mit "ws98win.bat +" werden die Dateiattribute zum
echo Schutz des Windows-Verzeichnises gesetzt. Mit "ws98win.bat -" wird die
echo Sicherheit zurückgesetzt.
echo Wenn Sie das Programm falsch gestartet haben können Sie jetzt mit "Strg-C"
echo abbrechen
rem Eventuell muß hier der Verzeichnisname für "C:\WINDOWS" korrigiert werden an.
pause
echo Dies kann einige Minuten dauern....
if (%1)==() goto FEHLER
if (%1)==(+) goto PLUS
if (%1)==(-) goto MINUS
:PLUS
@echo off
attrib +r +h c:\windows\*.*
attrib +r +h c:\windows\system\*.*
attrib +r +h c:\windows\command\*.*
attrib +r +h c:\windows\inf\*.*
attrib +r +h c:\windows\sendto\*.*
attrib +r +h c:\windows\shellnew\*.*
attrib +r +h c:\windows
attrib +r +h c:\windows\system
attrib +r +h c:\windows\command
attrib +r +h c:\windows\inf
attrib +r +h c:\windows\sendto
attrib +r +h c:\windows\shellnew
echo Das C:\ERD Verzeichnis wird nun geschⁿtzt
attrib +r +h c:\ERD\*.* /s
attrib +r +h c:\ERD
echo Gleich fertig.....
attrib -r -h c:\*.swp /S
attrib -r -h c:\windows\*.pwl
goto ENDE
:MINUS
attrib -r -h c:\windows\*.*
attrib -r -h c:\windows\system\*.*
attrib -r -h c:\windows\command\*.*
attrib -r -h c:\windows\inf\*.*
attrib -r -h c:\windows\sendto\*.*
attrib -r -h c:\windows\shellnew\*.*
attrib -r -h c:\windows
attrib -r -h c:\windows\system
attrib -r -h c:\windows\command
attrib -r -h c:\windows\inf
attrib -r -h c:\windows\sendto
attrib -r -h c:\windows\shellnew
attrib -r -h c:\erd\*.*
attrib -r -h c:\erd
goto ENDE
:FEHLER
echo Sie müssen das Programm mit "ws98win.bat +" oder "ws98win.bat -" starten
:ENDE