|
ka56
中级用户
  
积分 234
发帖 129
注册 2006-11-28
状态 离线
|
『楼 主』:
(已解决)怎样删除IE临时文件夹里的所有.htm文件?
使用 LLM 解释/回答一下
用del *.htm提示找不到文件,
大虾指导下,谢谢!!~~
Last edited by ka56 on 2006-12-1 at 10:33 PM ]
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 ]
|
|
2006-12-2 10:06 |
|
|
vkill
金牌会员
     
积分 4103
发帖 1744
注册 2006-1-20 来自 甘肃.临泽
状态 离线
|
|
2006-12-2 10:12 |
|
|
ka56
中级用户
  
积分 234
发帖 129
注册 2006-11-28
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
Originally posted by vkill at 2006-12-1 21:12:
del "IE临时文件夹\*.htm"
找不到d:\IE临时文件夹\*.htm
不知道为什么,在CMD下..
Originally posted by vkill at 2006-12-1 21:12:
del "IE临时文件夹\*.htm"
Cannot find d:\IE Temporary Folder\*.htm
Don't know why, in CMD..
|
|
2006-12-2 10:18 |
|
|
tianzizhi
高级用户
   
积分 622
发帖 214
注册 2006-9-22
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
你的目的可能不是只删临时文件里的htm文件吧,而是全部,
给你个清理垃圾文件的批处理:
@echo off
echo 正在清除系统LJ文件,请稍等......
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 清除系统LJ完成!
echo. & pause
存为bat运行即可.
其中:del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*" 是删除IE临时文件夹内容的语句.
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.
|
|
2006-12-2 10:23 |
|
|
ka56
中级用户
  
积分 234
发帖 129
注册 2006-11-28
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
就是要删除d:\IE临时文件夹\Temporary Internet Files\里的html document类型的的文件,路径输入正确,,应该是.htm的标示错误,不知道怎么搞..
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..
|
|
2006-12-2 10:26 |
|
|
ka56
中级用户
  
积分 234
发帖 129
注册 2006-11-28
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
非常感谢tianzizhi大虾,非常有用,谢谢!!!
我备份下了,
我不想清理IE临时文件夹的cookie,应该复杂一点吧?
Last edited by ka56 on 2006-12-1 at 10:00 PM ]
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 ]
|
|
2006-12-2 10:39 |
|
|
tianzizhi
高级用户
   
积分 622
发帖 214
注册 2006-9-22
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
IE临时文件夹里面的cookie没用,一共也没有几个,是垃圾,有用的cookie在cookie文件里,
你要不想删它的话,把批处理里这句去掉,
del /f /q %userprofile%\cookies\*.*
就行了.
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\*.*
|
|
2006-12-2 11:27 |
|
|
ka56
中级用户
  
积分 234
发帖 129
注册 2006-11-28
状态 离线
|
『第 8 楼』:
使用 LLM 解释/回答一下
Originally posted by tianzizhi at 2006-12-1 22:27:
IE临时文件夹里面的cookie没用,一共也没有几个,是垃圾,有用的cookie在cookie文件里,
你要不想删它的话,把批处理里这句去掉,
del /f /q %userprofile%\cookies\*.* ...
明白了,多谢大虾的耐心!
因为我运行的一个程序会产生大量的HTM文件,我所以就来咨询下了.. :D
现在全删了,搞定,哈哈..
谢谢!!......
Originally posted by tianzizhi at 2006-12-1 22:27:
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 them, remove this line from the batch file,
del /f /q %userprofile%\cookies\*.* ...
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!!......
|
|
2006-12-2 11:32 |
|
|
vkill
金牌会员
     
积分 4103
发帖 1744
注册 2006-1-20 来自 甘肃.临泽
状态 离线
|
『第 9 楼』:
使用 LLM 解释/回答一下
Originally posted by ka56 at 2006-12-2 10:18:
找不到d:\IE临时文件夹\*.htm
不知道为什么,在CMD下..
汗,我只是那个意思,你真就?
Originally posted by ka56 at 2006-12-2 10:18:
Can't find d:\IE temporary folder\*.htm
Don't know why, in CMD..
Sweat, I just meant that, do you really?
|
|
2006-12-2 12:05 |
|
|
ka56
中级用户
  
积分 234
发帖 129
注册 2006-11-28
状态 离线
|
『第 10 楼』:
使用 LLM 解释/回答一下
Originally posted by vkill at 2006-12-1 23:05:
汗,我只是那个意思,你真就?
: ))
我有更改了路径的...现在还不明白怎么删除网页文件,我初学的耶,见效了... :D
Originally posted by vkill at 2006-12-1 23:05:
Oh, I just meant that, but you really did?
: ))
I have changed the path... Now I still don't understand how to delete web files. I'm a beginner... It worked... :D
|
|
2006-12-2 12:44 |
|
|
HUNRYBECKY
银牌会员
    
积分 1179
发帖 442
注册 2006-9-9
状态 离线
|
『第 11 楼』:
使用 LLM 解释/回答一下
上面的代码还是有点不完善,如果用户把IE临时文件夹搬到其他地方,嘿嘿,就无法实现了,我的这个就可以自动判断:
@ECHO OFF
REM 获取IECACHE变量和系统环境变量SYSTEMP路径
REG EXPORT "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" "%TEMP%\IEC.TXT" & CLS
TYPE "%TEMP%\IEC.TXT" >"%TEMP%\IECOK.TXT"
FOR /F "tokens=1-2 DELIMS==" %%a in ('FINDSTR /I "Cache" "%TEMP%\IECOK.TXT"') DO SET IECACHE=%%b
REG EXPORT "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" "%TEMP%\TEMP.TXT" & CLS
TYPE "%TEMP%\TEMP.TXT" >"%TEMP%\TEMPOK.TXT"
FOR /F "tokens=1-2 DELIMS==" %%a in ('FINDSTR /I "TEMP" "%TEMP%\TEMPOK.TXT"') DO SET SYSTEMP=%%b
DEL /F/Q/S %IECACHE%\*.HTM & CLS
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:
@ECHO OFF
REM Get IECACHE variable and system environment variable SYSTEMP path
REG EXPORT "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" "%TEMP%\IEC.TXT" & CLS
TYPE "%TEMP%\IEC.TXT" >"%TEMP%\IECOK.TXT"
FOR /F "tokens=1-2 DELIMS==" %%a in ('FINDSTR /I "Cache" "%TEMP%\IECOK.TXT"') DO SET IECACHE=%%b
REG EXPORT "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" "%TEMP%\TEMP.TXT" & CLS
TYPE "%TEMP%\TEMP.TXT" >"%TEMP%\TEMPOK.TXT"
FOR /F "tokens=1-2 DELIMS==" %%a in ('FINDSTR /I "TEMP" "%TEMP%\TEMPOK.TXT"') DO SET SYSTEMP=%%b
DEL /F/Q/S %IECACHE%\*.HTM & CLS
|
|
2007-2-19 23:43 |
|
|
yangzhiyi
中级用户
  
积分 261
发帖 123
注册 2006-6-6
状态 离线
|
『第 12 楼』:
使用 LLM 解释/回答一下
Originally posted by HUNRYBECKY at 2007-2-19 23:43:
上面的代码还是有点不完善,如果用户把IE临时文件夹搬到其他地方,嘿嘿,就无法实现了,我的这个就可以自动判断:
@ECHO OFF
REM 获取IECACHE变量和 ...
请问如果用query 参数
reg query "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v Cache | find "Cache" >%TEMP%\IECOK.TXT
下面应该改成什么?
FOR /F "tokens=1-2 DELIMS==" %%a in ('FINDSTR /I "Cache" "%TEMP%\IECOK.TXT"') DO SET IECACHE=%%b
IECOK.TXT 文件内容为下:
Cache REG_SZ C:\Documents and Settings\user\Local Settings\Temporary Internet Files
Last edited by yangzhiyi on 2007-2-20 at 06:11 AM ]
Originally posted by HUNRYBECKY at 2007-2-19 23:43:
The above code is still a bit imperfect. If the user moves the IE temporary folder to another place, heh heh, it won't work. Mine can automatically judge:
@ECHO OFF
REM Get IECACHE variable and ...
May I ask if using the query parameter
reg query "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v Cache | find "Cache" >%TEMP%\IECOK.TXT
What should be changed below?
FOR /F "tokens=1-2 DELIMS==" %%a in ('FINDSTR /I "Cache" "%TEMP%\IECOK.TXT"') DO SET IECACHE=%%b
The content of the IECOK.TXT file is as follows:
Cache REG_SZ C:\Documents and Settings\user\Local Settings\Temporary Internet Files
Last edited by yangzhiyi on 2007-2-20 at 06:11 AM ]
|
|
2007-2-20 05:02 |
|
|
binghuochanmian
初级用户
 
积分 55
发帖 23
注册 2006-12-22 来自 广东
状态 离线
|
『第 13 楼』:
使用 LLM 解释/回答一下
Originally posted by HUNRYBECKY at 2007-2-19 11:43 PM:
上面的代码还是有点不完善,如果用户把IE临时文件夹搬到其他地方,嘿嘿,就无法实现了,我的这个就可以自动判断:
@ECHO OFF
REM 获取IECACHE变量和 ...
为何在我机器上运行会提示找不到路径?
Originally posted by HUNRYBECKY at 2007-2-19 11:43 PM:
The above code is still a bit imperfect. If the user moves the IE temporary folder to another place, heh heh, it won't work. My this one can automatically judge:
@ECHO OFF
REM Get IECACHE variable and ...
Why does it prompt that the path is not found on my machine?
|
|
2007-12-1 14:58 |
|
|
HAT
版主
       
积分 9023
发帖 5017
注册 2007-5-31
状态 离线
|
『第 14 楼』:
使用 LLM 解释/回答一下
Originally posted by yangzhiyi at 2007-2-20 05:02 AM:
请问如果用query 参数
reg query "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v Cache | find "Cache" >%TEMP%\IECOK.TXT
下面应该改成什么?
FOR /F "tokens=1-2 DELIMS==" %%a in ('FINDSTR /I "Cache" "%TEMP%\IECOK.TXT"') DO SET IECACHE=%%b
IECOK.TXT 文件内容为下:
Cache REG_SZ C:\Documents and Settings\user\Local Settings\Temporary Internet Files
用分号做分隔符就行了
FOR /F "tokens=1-2 DELIMS=:" %%a in ('FINDSTR /I "Cache" "%TEMP%\IECOK.TXT"') DO (
set left=%%a
set right=%%b
)
set ietemp=%left:~-1%%right%
Originally posted by yangzhiyi at 2007-2-20 05:02 AM:
How to modify if using query parameter
reg query "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v Cache | find "Cache" >%TEMP%\IECOK.TXT
What should be changed below?
FOR /F "tokens=1-2 DELIMS==" %%a in ('FINDSTR /I "Cache" "%TEMP%\IECOK.TXT"') DO SET IECACHE=%%b
The content of IECOK.TXT file is as follows:
Cache REG_SZ C:\Documents and Settings\user\Local Settings\Temporary Internet Files
Just use semicolon as the delimiter
FOR /F "tokens=1-2 DELIMS=:" %%a in ('FINDSTR /I "Cache" "%TEMP%\IECOK.TXT"') DO (
set left=%%a
set right=%%b
)
set ietemp=%left:~-1%%right%
|

 |
|
2007-12-2 01:55 |
|
|
INeverAsk
初级用户
 
积分 97
发帖 42
注册 2006-10-5
状态 离线
|
『第 15 楼』:
使用 LLM 解释/回答一下
我的IE临时文件夹就是放非系统盘的,我也不想删除cookie
My IE temporary folder is placed on a non-system drive, and I don't want to delete cookies.
|
|
2008-1-23 08:16 |
|