Thursday, September 28, 2006

delete temporary internet files

@echo off
rem Check for necessary variables
if %SystemDrive% == "" goto END
%SystemDrive%
if not exist "%SystemDrive%\Documents and Settings\*.*" goto END
rem check which OS
if %OS% == Windows_NT goto WNT
goto end
 
:WNT
SET SRC1=%SystemDrive%\Documents and Settings
echo %SRC1%
SET SRC2=Local Settings\Temporary Internet Files\Content.IE5
echo %SRC2%
FOR /D %%X IN ("%SRC1%\*") DO FOR /D %%Y IN ("%%X\%SRC2%\*.*") DO RMDIR /S /Q "%%Y" & echo deleting directory...

:END
 
 
#END



All-new Yahoo! Mail - Fire up a more powerful email and get things done faster.

No comments: