Unload temp files

Get help and discuss anything related to tweaking your internet connection, as well as the different tools and registry patches on the site. TCP Optimizer settings and Analyzer results should be posted here.
Post Reply
satyre
Advanced Member
Posts: 578
Joined: Mon Sep 24, 2001 2:12 pm
Location: Houston

Unload temp files

Post by satyre »

Anyone here knows how to empty the windows "temp" folder automatically every time we shut down the PC ? We can do that for "internet temp files" whenever we close the IE.

We can empty the temp folder through Scan Disk, that is not I am looking for, but empty it as we can do for intenet temp files.

We may have to create a registry key in the policies, such as "EmptyTempFolder", something like that....... but I don't know the registry protocol to create one.

There are few smart people in this forum. Why don't you guys use your knowledge to creat one?
User avatar
mnosteele52
Posts: 11913
Joined: Tue Jul 24, 2001 12:00 pm
Location: Chesapeake, VA

Post by mnosteele52 »

There are programs that will do this such as Internet Sweeper Pro & Window Washer, I'm sure there are many others. :) :D
User avatar
gerryg
New Member
Posts: 12
Joined: Sun Dec 15, 2002 12:27 am
Location: Birmingham, AL

Post by gerryg »

I don't know what OS you are using , but the instructions listed below work for Win 98SE very well. I've been using it for over two years on one of my machines. Give it a try and let us know how it comes out.

To empty Temp Folder safely, late in the boot process, do this:

"Open the Startup Folder in Programs. Create a New Shortcut. In the Command line put:

C:\WINDOWS\COMMAND\DELTREE.EXE /y C:\windows\temp\

(Adjust the path to your Temp folder as needed). Select Next. Create a name for this: "Delete Temp Folder". Select Next. Pick an Icon. Select Finish.

Now go to that shortcut and Right-click on it. Select Properties. Go to the Program tab and select "Close on exit". Apply and OK. That should do it!

This will empty your Windows Temp folder every time you bootup or restart. Also have instructions for deleting index.dat, cookies and history at bootup if you're interested. Good Luck!
Even The Best Laid Plans of Mice and Men Sometimes Go Astray!
User avatar
Lobo
SG VIP
Posts: 17660
Joined: Thu Nov 23, 2000 2:32 pm
Location: Panama City, FL and a FAN of Dale Earnhardt Jr. Bud Chevy & NASCAR , and the Atlanta Braves

Post by Lobo »

Profile says:

OS & System Specs Win XP Pro SP1 :)
satyre
Advanced Member
Posts: 578
Joined: Mon Sep 24, 2001 2:12 pm
Location: Houston

Post by satyre »

gerryg,

I am using XP pro SP1. I tried that method but the command "deltree.exe" is not available in XP. I did a search, but deltree.exe did not come up.

what is the equivalent exe. file in XP?
User avatar
Norm
SG VIP
Posts: 14195
Joined: Tue Mar 27, 2001 12:00 pm

Post by Norm »

Del (erase)Deletes specified files.

Syntax
del [Drive:][Path] FileName [ ...] [/p] [/f] [/s] [/q] [/a[:attributes]]

erase [Drive:][Path] FileName [ ...] [/p] [/f] [/s] [/q] [/a[:attributes]]

Parameters
[Drive:][Path] FileName
Specifies the location and name of the file or set of files you want to delete. Filename is required. You can use multiple file names. Separate file names with spaces, commas, or semicolons.
/p
Prompts you for confirmation before deleting the specified file.
/f
Forces deletion of read-only files.
/s
Deletes specified files from the current directory and all subdirectories. Displays the names of the files as they are being deleted.
/q
Specifies quiet mode. You are not prompted for delete confirmation.
/a
Deletes files based on specified attributes.
attributes
Specifies any of the following file attributes: Attribute Description
r Read-only
a Archive
s System
h Hidden
- Prefix meaning "not"

/?
Displays help at the command prompt.
Remarks
Using /p
If you use /p, del displays the name of a file and sends the following message:

filename, Delete (Y/N)?

Press Y to confirm the deletion, N to cancel the deletion and display the next file name (if you specified a group of files), or CTRL+C to stop the del command.

Disabling command extensions
If you disable command extensions, the /s command-line option displays the names of any files that were not found, instead of displaying the names of files that are being deleted (that is, the behavior is reversed). For more information about disabling command extensions, see cmd in Related Topics.

Deleting more than one file at a time
You can delete all of the files in a folder by typing del followed by [Drive:]Path. For example, the following command deletes all files in the \Work folder:

del \work

You can also use wildcards (that is, * and ?) to delete more than one file at a time. However, you should use wildcards cautiously with the del command to avoid deleting files unintentionally. For example, if you type the following command:

del *.*

The del command displays the following prompt:

All files in directory will be deleted! Are you sure (Y/N)?

Press Y and then ENTER to delete all files in the current folder, or press N and then ENTER to cancel the deletion.

Before you use wildcards with the del command to delete a group of files, you can use the same wildcards with the dir command to see a list of the names of all the files included in the group.

Warning

After you delete a file from your disk using del, you cannot retrieve it.
The del command, with different parameters, is available from the Recovery Console.
Examples
To delete all the files in a folder named Test on drive C:\, type any of the following:

del c:\test

del c:\test\*.*
Post Reply