Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to Use QM to Delete Specified Files in IE Browser Temporary Folder
#1
I want to delete some files in the IE browser temporary folder,
E.g:
I want to keep two files if they exist (FocuskyShower.swf, FocuskyShowerShell.swf)
All other files need to be deleted

The following dos batch code, I can delete all temporary files, but can not achieve my goal, I hope someone can give pointers, thanks in advance  Smile

————————————————————————————————
dos bat code:

del /f /s /q "%USERPROFILE%\AppData\Local\Microsoft\Windows\Temporary Internet Files\*.*"  

@pause
#2
this should do what ya need

Function removeIEcache
Code:
Copy      Help
Dir d
foreach(d "$Cache$\*" FE_Dir 4)
,str path=d.FullPath
,;out path
,str name=d.FileName
,sel name 2
,,case  ["*FocuskyShower*" ,"*FocuskyShowerShell*"]
,,out "found %s" name
,,case else
,,del- path
,,err
,,,out "cannot remove %s" name
,,,continue
,,out " removed %s" name
#3
if you have ie open or the dialog open it cannot remove files
i gave you what you asked for remove all files but those 2
sometimes folder is slow to update may need to refresh folder more than once
#4
a bit strange

The contents of the temporary folder in the code and the contents of the IE browser folder are inconsistent, and the required files cannot be retained
#5
if you check your output you will see there is more than 1 of those files saved and the actual name of the file saved is slightly different
in cache folder file name looks like
   

but actual name in cache is

FocuskyShower[1].swf
FocuskyShowerShell[1].swf

   
the files are being saved or it would take alot longer for the website to load
open  ie browser history settings
under website data settings window what is folder listed?
#6
Video  action

I just want to keep the following two files Smile Other files, if I can delete, try to delete , Using manual operation can achieve my needs

FocuskyShower [1]. swf
FocuskyShowerShell [1]. swf

_____________________________________
I don't know where these options are displayed

open  ie browser history settings

under website data settings window what is folder listed?


Attached Files
.zip   Video.zip (Size: 3.26 MB / Downloads: 265)
#7
close the folder completely first before checking again
the file you want is being retained or it would take alot longer for the website to load
#8
Still not keeping the required files


Attached Files Image(s)
   
#9
its there its just not where you think it should be look in subfolders
to see path change this

case  ["*FocuskyShower*" ,"*FocuskyShowerShell*"]

out "found %s" name
to

case  ["*FocuskyShower*" ,"*FocuskyShowerShell*"]
out "found %s" name
out path
#10
I am very strange  Huh

video action 

https://sendit.cloud/puus3uxv95tq


Forum Jump:


Users browsing this thread: 1 Guest(s)