![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-08-10 18:04 |
47,811 topics / 349,897 posts / today 0 new / 48,256 members |
| DOS批处理 & 脚本技术(批处理室) » (Solved) How to delete all .htm files in the IE temporary folder? |
| Printable Version 4,435 / 14 |
| Floor1 ka56 | Posted 2006-12-02 10:06 |
| 中级用户 Posts 129 Credits 234 | |
|
Using "del *.htm" prompts that the file is not found,
Please give guidance, thank you!!~~ [ Last edited by ka56 on 2006-12-1 at 22:33 ] |
|
| Floor2 vkill | Posted 2006-12-02 10:12 |
| 金牌会员 Posts 1,744 Credits 4,103 From 甘肃.临泽 | |
|
del "IE临时文件夹\*.htm"
|
|
| Floor3 ka56 | Posted 2006-12-02 10:18 |
| 中级用户 Posts 129 Credits 234 | |
Originally posted by vkill at 2006-12-1 21:12: Cannot find d:\IE Temporary Folder\*.htm Don't know why, in CMD.. |
|
| Floor4 tianzizhi | Posted 2006-12-02 10:23 |
| 高级用户 Posts 214 Credits 623 | |
|
Your purpose may not be just to delete the htm files in the temporary files, but all.
Here's a batch script to clean up junk files: @echo off echo Clearing system junk files, please wait... del /f /s /q %systemdrive%\*.tmp del /f /s /q %systemdrive%\*._mp del /f /s /q %systemdrive%\*.log del /f /s /q %systemdrive%\*.gid del /f /s /q %systemdrive%\*.chk del /f /s /q %systemdrive%\*.old del /f /s /q %systemdrive%\recycled\*.* del /f /s /q %windir%\*.bak del /f /s /q %windir%\prefetch\*.* rd /s /q %windir%\temp & md %windir%\temp del /f /q %userprofile%\cookies\*.* del /f /q %userprofile%\recent\*.* del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*" del /f /s /q "%userprofile%\Local Settings\Temp\*.*" del /f /s /q "%userprofile%\recent\*.*" echo System junk cleared! echo. & pause Save it as a bat and run it. Among them: del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*" is the statement to delete the contents of the IE temporary folder. |
|
| Floor5 ka56 | Posted 2006-12-02 10:26 |
| 中级用户 Posts 129 Credits 234 | |
|
Just need to delete the files of html document type in the path "d:\IE临时文件夹\Temporary Internet Files\", the path is entered correctly,, it should be a mark error of.htm, I don't know how to do it..
|
|
| Floor6 ka56 | Posted 2006-12-02 10:39 |
| 中级用户 Posts 129 Credits 234 | |
|
Thanks a lot,大虾tianzizhi, it's very useful, thanks!!!
I have backed it up, I don't want to clear the cookies in the IE temporary folder, it should be more complicated, right? [ Last edited by ka56 on 2006-12-1 at 10:00 PM ] |
|
| Floor7 tianzizhi | Posted 2006-12-02 11:27 |
| 高级用户 Posts 214 Credits 623 | |
|
The cookies in the IE temporary folder are useless, there are not many of them in total, they are garbage. The useful cookies are in the cookie file. If you don't want to delete it, remove this line in the batch file:
del /f /q %userprofile%\cookies\*.* |
|
| Floor8 ka56 | Posted 2006-12-02 11:32 |
| 中级用户 Posts 129 Credits 234 | |
Originally posted by tianzizhi at 2006-12-1 22:27: Got it, thank you very much for the expert's patience! Because a program I run generates a large number of HTM files, so I came to consult.. :D Now it's all deleted, done, haha.. Thanks!!...... |
|
| Floor9 vkill | Posted 2006-12-02 12:05 |
| 金牌会员 Posts 1,744 Credits 4,103 From 甘肃.临泽 | |
Originally posted by ka56 at 2006-12-2 10:18: Sweat, I just meant that, do you really? |
|
| Floor10 ka56 | Posted 2006-12-02 12:44 |
| 中级用户 Posts 129 Credits 234 | |
Originally posted by vkill at 2006-12-1 23:05: : )) I have changed the path... Now I still don't understand how to delete web files. I'm a beginner... It worked... :D |
|
| Floor11 HUNRYBECKY | Posted 2007-02-19 23:43 |
| 银牌会员 Posts 442 Credits 1,179 | |
|
The above code is still a bit imperfect. If the user moves the IE temporary folder to another place, heh, it won't work. Mine can judge automatically:
|
|
| Floor12 yangzhiyi | Posted 2007-02-20 05:02 |
| 中级用户 Posts 123 Credits 261 | |
Originally posted by HUNRYBECKY at 2007-2-19 23:43: |
|
| Floor13 binghuochanmian | Posted 2007-12-01 14:58 |
| 初级用户 Posts 23 Credits 55 From 广东 | |
Originally posted by HUNRYBECKY at 2007-2-19 11:43 PM: |
|
| Floor14 HAT | Posted 2007-12-02 01:55 |
| 版主 Posts 5,017 Credits 9,023 | |
Originally posted by yangzhiyi at 2007-2-20 05:02 AM: Just use semicolon as the delimiter FOR /F "tokens=1-2 DELIMS=:" %%a in ('FINDSTR /I "Cache" "%TEMP%\IECOK.TXT"') DO ( |
|
| Floor15 INeverAsk | Posted 2008-01-23 08:16 |
| 初级用户 Posts 42 Credits 97 | |
|
My IE temporary folder is placed on a non-system drive, and I don't want to delete cookies.
|
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |