Automate the Deleting of IE's Cache?

S

Scott Townsend

I'd like to automate the deletion of the IE Cache for all the users on a
Terminal Server.

Leave the Cookies, etc, but just delete the cache files and offline content.

Seems that every once in a while opening files directly from the browser
without saving them does not work. (zip, PDF, Word, etc)

Clearing the Cache and then clicking on the link again fixes the issue.

So I was looking for a cool way to traverse the folder deleting all the Temp
Files.

Thanks,
Scott<-
 
P

Pegasus \(MVP\)

Scott Townsend said:
I'd like to automate the deletion of the IE Cache for all the users on a
Terminal Server.

Leave the Cookies, etc, but just delete the cache files and offline content.

Seems that every once in a while opening files directly from the browser
without saving them does not work. (zip, PDF, Word, etc)

Clearing the Cache and then clicking on the link again fixes the issue.

So I was looking for a cool way to traverse the folder deleting all the Temp
Files.

Thanks,
Scott<-

You could use the Task Scheduler to invoke a batch file
that deletes the folder
C:\Documents and Settings\UserName\Local Settings\Temporary Internet
Files\Content.IE5
for every TS user, then recreates it.
 
G

Gary Smith

In microsoft.public.win2000.general "Pegasus \(MVP\) said:
You could use the Task Scheduler to invoke a batch file
that deletes the folder
C:\Documents and Settings\UserName\Local Settings\Temporary Internet
Files\Content.IE5
for every TS user, then recreates it.

It's not even necessary to recreate Content.IE5. Windows will do that
automatically at the next logon.
 
S

Scott Townsend

So what is the easiest way to loop through all the users in the Doc and
settings folder?

Thanks,
Scott<-
 
P

Pegasus \(MVP\)

Please try to respond to the post you refer to, not just to any
old post!

@echo off
cd /d "C:\Documents and Settings"
for /d %%a in (*.*) do rd /s /q "\%%a\Local Settings\Temporary
Internet Files\Content.IE5"



Scott Townsend said:
So what is the easiest way to loop through all the users in the Doc and
settings folder?

Thanks,
Scott<-
 
S

Scott Townsend

Thank you for your reply...

Scott<-
Pegasus (MVP) said:
Please try to respond to the post you refer to, not just to any
old post!

@echo off
cd /d "C:\Documents and Settings"
for /d %%a in (*.*) do rd /s /q "\%%a\Local Settings\Temporary
Internet Files\Content.IE5"
 
S

Scott Townsend

There was an Extra \ in the For loop.
"%%a\ not "\%%a\

@echo off
cd /d "C:\Documents and Settings"
for /d %%a in (*.*) do rd /s /q "%%a\Local Settings\Temporary
Internet Files\Content.IE5"


thanks again! Works Great!

Pegasus (MVP) said:
Please try to respond to the post you refer to, not just to any
old post!

@echo off
cd /d "C:\Documents and Settings"
for /d %%a in (*.*) do rd /s /q "\%%a\Local Settings\Temporary
Internet Files\Content.IE5"
 
P

Pegasus \(MVP\)

Indeed there was. Sorry for the oversight.


Scott Townsend said:
There was an Extra \ in the For loop.
"%%a\ not "\%%a\

@echo off
cd /d "C:\Documents and Settings"
for /d %%a in (*.*) do rd /s /q "%%a\Local Settings\Temporary
Internet Files\Content.IE5"


thanks again! Works Great!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top