PDA

View Full Version : file .bat


peppecol
21-11-2004, 12:28
ho messo questo file .bat nella cartella esecuzione automatica, posso mettere una riga di comando in modo da non cancellarmi esempio i cookie esempio di hwupgrade?

IF "%OS%"=="" GOTO WIN9X
@REM - FIND "Documents And Settings"
FOLDER:
%SYSTEMDRIVE%
CD %USERPROFILE%\..
FOR /D %%F IN (*.*) DO DEL /F/S/Q "%%F\Recent\*.*"
FOR /D %%F IN (*.*) DO DEL /F/S/Q "%%F\Impostazioni locali\Temp\*.*"
FOR /D %%F IN (*.*) DO DEL /F/S/Q "%%F\Cookies\*.txt
FOR /D %%F IN (*.*) DO DEL /F/S/Q "%%F\Impostazioni locali\Temporary Internet Files\*.*"
DEL /F/S/Q %WINDIR%\Temp\*.*
DEL /F/S/Q %WINDIR%\*.tmp

:GOTO END

:WIN9X
REM - WIN9X systems are currently not supported.

:END