China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-05 03:19
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » What batch processing command can completely delete the IE browser cache? View 1,945 Replies 13
Original Poster Posted 2006-12-17 00:40 ·  中国 重庆 沙坪坝区 电信
初级用户
★★
Credits 105
Posts 77
Joined 2006-11-09 02:14
19-year member
UID 70077
Gender Male
From 重庆
Status Offline
What batch command can be used to completely delete the IE browser cache?

The path of IE cache is %userprofile%\Local Settings\Temporary Internet Files\

The following batch processing cannot clear the IE cache:

del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*"

The following also doesn't work, only a small part can be deleted:

del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\"

Please ask the experts for guidance, what batch command can be used to completely delete all files in the IE cache?

Supplementary: You can first use Tskill or Taskkill to end Iexplore, but I have tried it and still can't delete it...

[ Last edited by gene771771 on 2006-12-16 at 11:57 AM ]
Floor 2 Posted 2006-12-17 00:49 ·  中国 北京 联通
金牌会员
★★★★
Credits 2,902
Posts 1,147
Joined 2006-09-21 12:00
19-year member
UID 63324
Gender Male
Status Offline
There are files in the IE browser cache that are being opened by the system, so they can't be deleted~ :)
    Redtek,一个永远在网上流浪的人……

_.,-*~'`^`'~*-,.__.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._
Floor 3 Posted 2006-12-17 00:58 ·  中国 重庆 沙坪坝区 电信
初级用户
★★
Credits 105
Posts 77
Joined 2006-11-09 02:14
19-year member
UID 70077
Gender Male
From 重庆
Status Offline
You can first use Tskill or Taskkill to end Iexplore, but I tried it and still can't delete it...
Floor 4 Posted 2006-12-17 01:07 ·  中国 四川 成都 教育网
铂金会员
★★★★
Credits 7,493
Posts 2,672
Joined 2005-09-02 00:00
20-year member
UID 42173
Gender Male
Status Offline

C:\>BLOG http://initiative.yo2.cn/
C:\>hh.exe ntcmds.chm::/ntcmds.htm
C:\>cmd /cstart /MIN "" iexplore "about:<bgsound src='res://%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\vbe6.dll/10/5432'>"
Floor 5 Posted 2007-02-19 23:49 ·  中国 广东 东莞 电信
银牌会员
★★★
Credits 1,179
Posts 442
Joined 2006-09-09 22:47
19-year member
UID 62249
Status Offline
The RD command cannot completely delete it, there are always some remaining things, it should be possible under pure DOS.
Floor 6 Posted 2007-02-19 23:59 ·  中国 四川 成都 电信
铂金会员
★★★★
Credits 7,493
Posts 2,672
Joined 2005-09-02 00:00
20-year member
UID 42173
Gender Male
Status Offline
The index.dat cannot be deleted, while others can be.

C:\>BLOG http://initiative.yo2.cn/
C:\>hh.exe ntcmds.chm::/ntcmds.htm
C:\>cmd /cstart /MIN "" iexplore "about:<bgsound src='res://%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\vbe6.dll/10/5432'>"
Floor 7 Posted 2007-02-20 00:05 ·  中国 广东 东莞 电信
银牌会员
★★★
Credits 1,179
Posts 442
Joined 2006-09-09 22:47
19-year member
UID 62249
Status Offline
Well, yes, if I don't end EXPLORER and the antivirus software here, it seems that even the qualified HTML files can't be cleared.
Floor 8 Posted 2007-02-20 00:53 ·  中国 陕西 西安 电信
铂金会员
★★★★
Credits 5,212
Posts 2,478
Joined 2007-02-08 23:39
19-year member
UID 79003
Gender Male
Status Offline
In addition to index.dat

del /s /q /f "D:\Temporary Internet Files\Content.ie5\"
Floor 9 Posted 2007-02-20 02:52 ·  中国 广东 东莞 电信
银牌会员
★★★
Credits 1,179
Posts 442
Joined 2006-09-09 22:47
19-year member
UID 62249
Status Offline
Originally posted by slore at 2007-2-20 00:53:
Except index.dat

del /s /q /f "D:\Temporary Internet Files\Content.ie5\"


You only specified Temporary Internet Files, and /S in DEL already includes SUB directories, so it can be cleared. Just some files cannot be cleared because they are in use. This Content.ie5 is very annoying, and it contains garbage files and viruses from browsing the web.
Floor 10 Posted 2007-02-20 03:38 ·  中国 陕西 西安 电信
铂金会员
★★★★
Credits 5,212
Posts 2,478
Joined 2007-02-08 23:39
19-year member
UID 79003
Gender Male
Status Offline
There are no files under Temporary Internet Files... You can do a dir to see... But with dir /ad you can see the content.ie5 directory.

The files in that directory themselves can be said to be a kind of shortcut, but different from lnk files...

The cookies inside point to the files in the cookies folder, and other files point to the files in content.ie5.
Floor 11 Posted 2007-06-16 01:16 ·  中国 广东 电信
新手上路
Credits 2
Posts 1
Joined 2007-06-16 00:53
19-year member
UID 91468
Gender Male
Status Offline
The problem hasn't been solved yet. Waiting for an expert!
Floor 12 Posted 2007-06-16 08:58 ·  中国 湖南 湘潭 电信
初级用户
Credits 62
Posts 33
Joined 2007-06-16 07:33
19-year member
UID 91475
Gender Male
Status Offline
This line must work:
for /f "delims=" %%i in ('dir "%userprofile%\Local Settings\Temporary Internet Files\*.*" /s/b') do del /f/q "%%i"

[ Last edited by pooloo on 2007-6-16 at 09:14 AM ]
Floor 13 Posted 2007-06-18 14:29 ·  中国 广东 广州 黄埔区 电信
初级用户
★★
Credits 132
Posts 62
Joined 2007-06-05 23:27
19-year member
UID 90371
Gender Male
Status Offline
Originally posted by pooloo at 2007-6-16 08:58 AM:
This sentence must work:
for /f "delims=" %%i in ('dir "%userprofile%\Local Settings\Temporary Internet Files\*.*" /s/b') do del /f/q "%%i"

[ Last edited by pooloo o ...

Still not working, waiting for an expert to guide
Floor 14 Posted 2007-06-18 14:39 ·  中国 云南 昆明 电信
初级用户
★★
Credits 134
Posts 50
Joined 2006-03-28 13:50
20-year member
UID 52939
Status Offline
Me too. If the first object to be deleted has "index.dat" on it. It will stop here. The background one seems not to be deleted.
Forum Jump: