• Sign in to Neowin Faster!

    Create an account on Neowin to contribute and support the site.

  • 0
Sign in to follow this  

.bat

Question

Toxikk    0

is there anyway i can make a bat file that will erase the temporary internet files? it has got some sort of protection on it and i havent been able to figure out if it's possible. anyone know?

Share this post


Link to post
Share on other sites

5 answers to this question

Recommended Posts

  • 0
Malechai    116

unless i'm completely on crack, couldn't you just make a bat file with the following line?

del x:\path\to\TIF\folder\*.* ?

example:

del "c:\documents and settings\toxikk\local settings\temporary internet files\*.*"

Share this post


Link to post
Share on other sites
  • 0
hurting101    0

Can you show us what you have so far in the script?

The easiest way would be to use cleanmgr instead of deleting the files:

Start > Run > cleanmgr /sageset 3

Then check the box "Temporary internet files". In the batch file, add the line:

cleanmgr /sagerun 3

If you still want to do it manually (using del, etc) see here and here.

Share this post


Link to post
Share on other sites
  • 0
Steven    80
is there anyway i can make a bat file that will erase the temporary internet files? it has got some sort of protection on it and i havent been able to figure out if it's possible. anyone know?

Optional:

Internet Explorer ===> Tools ===> Internet Options ===> Advanced ===> Security ===> Empty Temporary Internet Files Folder when browser is closed (check the box, hit ok)

This will destory your temp files when you close IE.

Maybe this is helpful for you too. :)

Share this post


Link to post
Share on other sites
  • 0
MxxCon    0
del "c:\documents and settings\toxikk\local settings\temporary internet files\*.*"

that's not going to work becuase in inside of "temp inet files" is bunch of dirs.

deltree instead of del might work tho

Share this post


Link to post
Share on other sites
  • 0
PCKing    0
that's not going to work becuase in inside of "temp inet files" is bunch of dirs.

deltree instead of del might work tho

yep... deltree just type all the dir's you want to clear...

I always just had surfpal clear all that ****e when I close browser... did the job good too...

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.