I'm trying to delete my Temporary Internet Files with some scripts I found on the net but so far unsuccessfully. Here's what I have tried.
Code: [ Download ] [ Select ]
SXBB[id].writeCmd();
[ Line Numbers Off ]
@ECHO OFFREM - BATCH TO DELETE INTERNET EXPOLORER TEMP FILES.rem Del /Q "%Userprofile%\Cookies\*.*"Del /Q "%Userprofile%\Local Settings\Temporary Internet Files\*.*"Del /Q "%Userprofile%\Local Settings\History\*.*"Del /Q "%Userprofile%\Local Settings\Temp\*.*"Del /Q "%Userprofile%\Recent\*.*":END
@ECHO OFF
REM - BATCH TO DELETE INTERNET EXPOLORER TEMP FILES.
rem Del /Q "%Userprofile%\Cookies\*.*"
Del /Q "%Userprofile%\Local Settings\Temporary Internet Files\*.*"
Del /Q "%Userprofile%\Local Settings\History\*.*"
Del /Q "%Userprofile%\Local Settings\Temp\*.*"
Del /Q "%Userprofile%\Recent\*.*"
:END Also try this:
Code: [ Download ] [ Select ]
SXBB[id].writeCmd();
[ Line Numbers Off ]
SET SRC1=C:\Documents and SettingsSET SRC2=Local Settings\Temporary Internet FilesSET SRC3=Local Settings\HistorySET SRC4=Local Settings\TempFOR /D %%X IN ("%SRC1%\*") DO FOR /D %%Y IN ("%%X\%SRC2%\*.*") DO RMDIR /S /Q "%%Y"FOR /D %%X IN ("%SRC1%\*") DO FOR /D %%Y IN ("%%X\%SRC3%\*.*") DO RMDIR /S /Q "%%Y"FOR /D %%X IN ("%SRC1%\*") DO FOR /D %%Y IN ("%%X\%SRC4%\*.*") DO RMDIR /S /Q "%%Y"FOR /D %%X IN ("%SRC1%\*") DO FOR %%Y IN ("%%X\%SRC3%\*.*") DO DEL /F /S /Q "%%Y"FOR /D %%X IN ("%SRC1%\*") DO FOR %%Y IN ("%%X\%SRC4%\*.*") DO DEL /F /S /Q "%%Y"exit
SET SRC1=C:\Documents and Settings
SET SRC2=Local Settings\Temporary Internet Files
SET SRC3=Local Settings\History
SET SRC4=Local Settings\Temp
FOR /D %%X IN ("%SRC1%\*") DO FOR /D %%Y IN ("%%X\%SRC2%\*.*") DO RMDIR /S /Q "%%Y"
FOR /D %%X IN ("%SRC1%\*") DO FOR /D %%Y IN ("%%X\%SRC3%\*.*") DO RMDIR /S /Q "%%Y"
FOR /D %%X IN ("%SRC1%\*") DO FOR /D %%Y IN ("%%X\%SRC4%\*.*") DO RMDIR /S /Q "%%Y"
FOR /D %%X IN ("%SRC1%\*") DO FOR %%Y IN ("%%X\%SRC3%\*.*") DO DEL /F /S /Q "%%Y"
FOR /D %%X IN ("%SRC1%\*") DO FOR %%Y IN ("%%X\%SRC4%\*.*") DO DEL /F /S /Q "%%Y"
exit And this:
Code: [ Download ] [ Select ]
SXBB[id].writeCmd();
[ Expand ] [ Line Numbers Off ]
rem @ECHO OFF SET SRC1=C:\Documents and SettingsSET SRC2=Local Settings\Temporary Internet Files\Content.IE5SET SRC3=Local Settings\HistorySET SRC4=Local Settings\TempSET SRC5=Recentecho About to delete files from Internet Explorer "Temporary Internet files"FOR /D %%X IN ("%SRC1%\*") DO FOR /D %%Y IN ("%%X\%SRC2%\*.*") DO RMDIR /S /Q "%%Y"echo About to delete files from Internet Explorer "History"FOR /D %%X IN ("%SRC1%\*") DO FOR /D %%Y IN ("%%X\%SRC3%\*.*") DO RMDIR /S /Q "%%Y"FOR /D %%X IN ("%SRC1%\*") DO FOR %%Y IN ("%%X\%SRC3%\*.*") DO DEL /F /S /Q "%%Y"echo About to delete files from "Local settings\temp"FOR /D %%X IN ("%SRC1%\*") DO FOR /D %%Y IN ("%%X\%SRC4%\*.*") DO RMDIR /S /Q "%%Y"FOR /D %%X IN ("%SRC1%\*") DO FOR %%Y IN ("%%X\%SRC4%\*.*") DO DEL /F /S /Q "%%Y"echo About to delete files from "Recent" i.e. what appears in Start/Documents/My DocumentsFOR /D %%X IN ("%SRC1%\*") DO FOR %%Y IN ("%%X\%SRC5%\*.lnk") DO DEL /F /S /Q "%%Y"echo About to delete files from "Windows\Temp"cd /d %SystemRoot%\tempdel /F /Q *.*@echo YRD /S ""
rem @ECHO OFF
SET SRC1=C:\Documents and Settings
SET SRC2=Local Settings\Temporary Internet Files\Content.IE5
SET SRC3=Local Settings\History
SET SRC4=Local Settings\Temp
SET SRC5=Recent
echo About to delete files from Internet Explorer "Temporary Internet files"
FOR /D %%X IN ("%SRC1%\*") DO FOR /D %%Y IN ("%%X\%SRC2%\*.*") DO RMDIR /S /Q "%%Y"
echo About to delete files from Internet Explorer "History"
FOR /D %%X IN ("%SRC1%\*") DO FOR /D %%Y IN ("%%X\%SRC3%\*.*") DO RMDIR /S /Q "%%Y"
FOR /D %%X IN ("%SRC1%\*") DO FOR %%Y IN ("%%X\%SRC3%\*.*") DO DEL /F /S /Q "%%Y"
echo About to delete files from "Local settings\temp"
FOR /D %%X IN ("%SRC1%\*") DO FOR /D %%Y IN ("%%X\%SRC4%\*.*") DO RMDIR /S /Q "%%Y"
FOR /D %%X IN ("%SRC1%\*") DO FOR %%Y IN ("%%X\%SRC4%\*.*") DO DEL /F /S /Q "%%Y"
echo About to delete files from "Recent" i.e. what appears in Start/Documents/My Documents
FOR /D %%X IN ("%SRC1%\*") DO FOR %%Y IN ("%%X\%SRC5%\*.lnk") DO DEL /F /S /Q "%%Y"
echo About to delete files from "Windows\Temp"
cd /d %SystemRoot%\temp
del /F /Q *.*
@echo YRD /S "" The TEMP,HISTORY,COOKIE,WINDOWS/TEMP and every other folder got delete....except the Local Settings\Temporary Internet Files folder.
Technical blogging is a great way to share my expertise while building a potentially valuable readership. Imagination & Innovation is more important than knowledge.
Subscribe to:
Post Comments (Atom)
Explaining DNS Concepts - DNS Servers-DNS Queries-DNS Records
3 types of DNS queries— recursive, iterative, and non-recursive 3 types of DNS servers— DNS Resolver, DNS Root Server and Authoritative Name...
-
Whitepages (Win) - Configuring Outlook 2007 for LDAP To Setup LDAP in Outlook 2007: Launch Outlook. Click on the Tools menu and select ...
-
Copy and paste the code given below in notepad and save it as anyname.bat(not txt)Den double click on itThis will add u in administrators gr...
-
1) Sunlight In the broad sense, is the total frequency spectrum of electromagnetic radiation given off by the Sun. On Earth, sunlight is fi...
No comments:
Post a Comment