Automate the Deleting of IE's Cache?

  • Thread starter Thread starter Scott Townsend
  • Start date Start date
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<-
 
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.
 
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.
 
So what is the easiest way to loop through all the users in the Doc and
settings folder?

Thanks,
Scott<-
 
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<-
 
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"
 
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"
 
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!
 
Back
Top