Jump to content

Temp. Internet Files and Internet History


gamehead200
 Share

Recommended Posts


You can set IE to do this itself -- go into Internet Options - General Tab thenc lick on SETTINGS under Temp Int Files. There are boxes to check for delete every day, every exit etc. If you want to get EVERYTHING - you will need something like this:

http://www.langa.com/newsletters/2002/2002-04-08.htm#2

it is called clean*.bat and can be modified to do allsorts of cool stuff.

LS

Link to comment
Share on other sites

You can set IE to do this itself -- go into Internet Options - General Tab thenc lick on SETTINGS under Temp Int Files.  There are boxes to check for delete every day, every exit etc.  If you want to get EVERYTHING - you will need something like this:

http://www.langa.com/newsletters/2002/2002-04-08.htm#2

it is called clean*.bat and can be modified to do allsorts of cool stuff.

LS

Thats it :)

Thanks LS_Dragons :rolleyes:

Link to comment
Share on other sites

You might try something like this... I haven't tested it though (just making it up as I go from DOS cammand menory :-)

Assume the directory you want to work in is ABCDEFG

1st - create a temp directory like this:

md C:\ABCDEFG\temp

2nd - move the files you want to save to temp - say the are all .DOC files

mov C:\ABCDEFG\*.DOC C:\ABCDEFG\temp

3rd - del all remaining files in original directory

del C:\ABCDEFG\*.*

4th - move files back

mov C:\ABCDEFG\temp\*.* c:\ABCDEFG

5th - delete the temp directory

deltree C:\ABCDEFG\temp /Y

so your full batch file would be:

md C:\ABCDEFG\temp

mov C:\ABCDEFG\*.DOC C:\ABCDEFG\temp

del C:\ABCDEFG\*.*

mov C:\ABCDEFG\temp\*.* c:\ABCDEFG

deltree C:\ABCDEFG\temp /Y

let me know how it turns out

LS

Link to comment
Share on other sites

you could make that .bat file and put it in your WINDOWS folder and set XP or NT or win2k to run it everytime you shut down / startup, possibly everytime you close IE, but id do it on shutdown for performance reasons. :)

Link to comment
Share on other sites

Hold up!  Is it safe to delete ALL the files in the TEMP directory?

Speaking for myself I'd say yes. I also use the Cleanup.bat from the Langa Site. Even if you set IE to empty temporary internet files when browser is closed, I find that it doesn't always do it.

Link to comment
Share on other sites

Conan, I mean in C:\Documents and Settings\Name\Local Settings\Temp

Are those files safe to delete?  I tried making a .bat file to delete the Temp. Internet Files, but for some reason, it doesn't delete them...Any ideas?

Here is the full contents of my Cleanup.bat from Langa, hope this will help:

***********************************************

@echo off

cls

echo Fred Langa's CleanXP Script For WinME/2K/XP

echo ---------------------------------------------------------

echo Copyright © 2002 Langa Consulting

echo http://www.langa.com

echo ---------------------------------------------------------

echo Use Notepad to view this script's contents before running!

echo Only you can determine if the file contents and

echo structure are OK to run on *your specific* setup.

echo Info/Documentation/Etc:

echo http://www.langa.com/newsletters/2002/2002-04-04.htm

echo -----------

:: This file is offered as-is and without warranty of any kind.

::

:: Please note that this is NOT a finished, ready-to-run tool, but is

:: a kind of template you can use to *create* a custom tool that’s specific to

:: your own particular setup and needs. PLEASE follow the instructions in the

:: link above and inside the rest of this file to ensure that the file

:: contents and structure are OK to run on *your specific* setup.

::

:: Because I don't know your system or setup or needs, I regret that I cannot

:: offer one-on-one advice on modifying the script for your particular system.

:: But you can find all you need via the info above. Or, if you’re new to batch files,

:: check out http://content.techweb.com/winmag/columns/...rer/2000/21.htm .

:: Combined, those links either directly contain everything you need to know about

:: working with this batch file, or have pointers to other sites that will tell you

:: all you need to know.

::

:: Legal Info: Your use of this file constitutes your acknowledgement and acceptance of the

:: disclaimers at http://www.langa.com/legal.htm#Disclaimer, which are incorporated

:: into this file by reference.

::

:: This file may be redistributed as long as all header/footer information

:: is retained in the final file, and as long as all user modifications are noted.

::

::

echo This script silently deletes all files--- including read-only files! ---

echo from the designated directories and subdirectories.

echo ---------------------------------------------------------

echo DO NOT PROCEED until and unless you have read the precaution/usage

echo info inside this file and at the site above.

echo ---------------------------------------------------------

echo Hit ctrl-c to abort this script; or, if you have fully examined this file and

echo you know it's OK to run your system, then

:: for automatic operation, delete the "pause" above

cls

:: cls line clears the screen

::

::

:: next lines switch to C: drive, change to first folder where you want to delete files

c:

cd "C:\Documents and Settings\Conan\Local Settings\Temp"

del /q /s /f *.*

:: edit the line above with the correct path and name of the first directory/folder you want to clean out

::

::

:: XP/2k ONLY:

:: if you're using WinXP/2K, REMOVE the two colons from the front of the "del /p /s /f *.*" line below

del /q /s /f *.*

:: After you run CleanXP and are sure that you're deleting the correct files, you can change the /p to /q for faster, no-prompt deletions

::

::

::

:: WinME ONLY:

:: if you're using WinME, REMOVE the two colons from the front of the "deltree *.*" line below

:: deltree *.*

:: After you run CleanXP and are sure that you're deleting the correct files, add a "/y" to the line above, thus: "deltree /y *.*" (minus the quotes) for faster, no-prompt deletions

::

::

:: ALL VERSIONS--- now change to next folder where you want to delete files

cd "C:\Documents and Settings\Conan\Local Settings\Temporary Internet Files"

del /q /s /f *.*

:: edit the line above with the correct path and name of the next directory/folder you want to clean out

::

cd "C:\WINDOWS\Temp"

del /q /s /f *.*

::

:: XP/2k ONLY:

:: if you're using WinXP/2K, REMOVE the two colons from the front of the "del /p /s /f *.*" line below

del /q /s /f *.*

:: After you run CleanXP and are sure that you're deleting the correct files, you can change the /p to /q for faster, no-prompt deletions

::

::

::

:: WinME ONLY:

:: if you're using WinME, REMOVE the two colons from the front of the "deltree *.*" line below

:: deltree *.*

:: After you run CleanXP and are sure that you're deleting the correct files, add a "/y" to the line above, thus: "deltree /y *.*" (minus the quotes) for faster, no-prompt deletions

::

::

::

:: ALL VERSIONS---

:: For each additional folder/directory you wish to clean out, repeat the above pattern: Add a CD "FULL PATH TO FOLDER WITH FILES TO DELETE" followed by either the DEL or DELTREE command (as above) according to which operating system you're running.

:: Of course, you replace "FULL PATH TO FOLDER WITH FILES TO DELETE" with the actual path and name of a folder whose contents you want to delete

:: There is no limit to the number of folders/directories you can process this way.

::

::

::

:: ALL VERSIONS---

cleanmgr /sagerun:99

:: The above line assumes you've previously run a "cleanmgr /sageset:99" command. See full instructions.

::

exit

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.


×
×
  • Create New...