News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Stubborn directory to clear

Started by Magnum, February 12, 2014, 08:00:24 AM

Previous topic - Next topic

Magnum

I am trying to write a batch file to delete all files in this directory.

Windows won't let me even when I remove all file attributes.

CCleaner can remove them, so it is possible.

Any ideas to try ?

Thanks.

C:\Documents and Settings\Andrew\Local Settings\Temporary Internet Files
Take care,
                   Andy

Ubuntu-mate-18.04-desktop-amd64

http://www.goodnewsnetwork.org

dedndave

many of the items that exist in the subfolders aren't really there   :biggrin:
some are "virtual" links - they only exist on your computer in the index file
to learn what is and isn't a file, you could figure out how to parse the index file (probably not that hard)
it may be simpler to just replace the index file with an empty one, then delete what's left

there are probably some issues with that
for example, some files in there may not belong to an internet explorer browser
so, i guess the trick would be to delete what you can, then make the index file match what is left

dedndave

...also, the Favorites icons are stored in there - at least, for some versions of IE

Blackmasm

Well:-
del *.*  /f /s /q
works for me
I think the /f is the important bit.
This will not delete files that are being used obviously, but you should get an error for such files telling you so.

Ccleaner probably using an api.
You could also take a look at running:-
RunDll32.exe Inet.cpl, ClearMyTracksByProcess 8
Which will depend on what version of IE you have installed

Cheers
</ me>

Vortex

Hi Magnum,

You can delete that folder after booting to a Windows PE session or a live Linux disc but Window will recreate the folder.

Magnum

Take care,
                   Andy

Ubuntu-mate-18.04-desktop-amd64

http://www.goodnewsnetwork.org