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 ]
Please give guidance, thank you!!~~
[ Last edited by ka56 on 2006-12-1 at 22:33 ]
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!
Originally posted by vkill at 2006-12-1 21:12:
del "IE临时文件夹\*.htm"
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\*.* ...
Originally posted by ka56 at 2006-12-2 10:18:
Can't find d:\IE temporary folder\*.htm
Don't know why, in CMD..
Originally posted by vkill at 2006-12-1 23:05:
Oh, I just meant that, but you really did?
@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
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 ...
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 ...
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
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%