Any cautions about deleting files and directories in the c:temp and c:windowstemp directories? I can understand not deleting anything with a recent date, but some of these things have been in there forever, and it some cases are sucking up ALOT of disk space; I found 1 file with 305MB! And what about those subdirectories, such as c:temp_ISTMP0.DIR or other such unrecognizable name? However, there are a couple of subdirectories with recognizable names, such as “FrontPageTempDir” and “VBE”. Can I just assume the parent applications will recreate them as needed?
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
Temp files/directories
Home » Forums » AskWoody support » Windows » Windows Vista, XP and earlier » Questions: Vista, XP back to 3.1 » Temp files/directories
- This topic has 19 replies, 7 voices, and was last updated 21 years, 7 months ago.
AuthorTopicWSMarkLiquorman
AskWoody LoungerSeptember 26, 2003 at 12:13 pm #394196Viewing 0 reply threadsAuthorReplies-
WSHansV
AskWoody LoungerSeptember 26, 2003 at 3:11 pm #720543In general, it is safe to delete everything in the Temp folder when no applications (except Explorer) are running. Files and subfolders in Temp are either useless, or they will be recreated the next time they are needed.
The directories such as VBE contain .exd files; they cache information about controls on userforms. If you delete them, they will be created anew the next time you insert a control on a userform; this will result in a slight delay, but on modern PC’s it is hardly noticeable.
-
WSMarkLiquorman
AskWoody Lounger -
WSDocWatson
AskWoody LoungerSeptember 26, 2003 at 7:09 pm #720633Mark,
You might want to go to StartProgramsAccessoriesSystem Tools and run DiskCleanup. Choose your C: drive when prompted and then check the boxes next to the folders you want to clean up. I generally recommend that you check Temporary Internet Files, Recycle Bin & Temporary Files, but everyone has their own preferences. It’s a quick easy way to keep thing a bit less cluttered. HTH.
-
WSPhil Rabichow
AskWoody LoungerSeptember 28, 2003 at 10:01 pm #721320Hi Mark:
I use a shortcut that deletes temp files every time I reboot. If you right click hte desktop & choose “Create shortcut”, then put this in the command line:C:WINDOWSCOMMANDDELTREE.EXE /y c:windowstemp
After you create your shortcut, you can put it in the Windows/Start Menu/ProgramsStartup folder.
Cheers, -
WSDocWatson
AskWoody LoungerSeptember 29, 2003 at 11:14 am #721511Hi Phil,
I like the idea of being able to “custom-tailor” commands to perform everyday tasks more simply and often wish I had gotten into computing sooner, forcing me to learn DOS and the command line. Batch files and shortcuts such as the one you posted here seem to have the capabilities to perform these tasks quickly and easily without disrupting one’s work (or play
).
I do have one question about your shortcut that is directly related to my lack of knowledge about these things. When that command executes will it delete everything in the specified folder ?? Files, cookies, etc ??? The underlying reason for the question concerns cookies stored there for places like the lounge that help the site to recognize you when you visit. Disk Cleanup always seems to leave those behind, along with several other cookies that most of us would like deleted in the process.
-
WSPhil Rabichow
AskWoody LoungerSeptember 29, 2003 at 3:50 pm #721648Hi Doc:
I wish I had learned more about DOS, too. I just get tips from others. R2 once posted a web site that gave basic DOS commands & their explanation, but I can’t find it right now.In any event, to answer your question, the command deletes everything in the Temp folder. However, no cookies are stored in the temp folder & so they’re not deleted. On my system, the default location is C:WindowsCookies. The only thing that’s deleted are files & folders in the Temp folder. The primary files that this shortcut deletes are the temp files that the system puts there. For me, it’s usually when Word crashes.
Zone Alarm puts a bunch of temporary log files there also.
I read somewhere that the system uses temp files as you boot up, but this shortcut runs late in the boot process & doesn’t interfere with any programs, as far as I can tell. In combination with Neil Rubenking’s End It All (from PC Magazine), the batch file is extremely handy.
Cheers, -
WSGranville
AskWoody Lounger -
WSPhil Rabichow
AskWoody Lounger -
WSbigaldoc
AskWoody LoungerSeptember 30, 2003 at 10:50 am #721979I have DOS The Easy Way in my bookmarks but I don’t know where I got it or if it’s of any help.
-
WSPhil Rabichow
AskWoody Lounger -
WSPhil Rabichow
AskWoody Lounger -
WSPhil Rabichow
AskWoody Lounger -
WSGranville
AskWoody Lounger -
WSR2
AskWoody LoungerSeptember 30, 2003 at 9:16 pm #722290Just to lend support to this thread and Phil’s comments. The “Temp” folder is not supposed to hold your Temporary Internet Files folder — although I have seen boxes where this inappropriate relationship existed!
The Temporarily Internet Files folder does not really hold your cookies — what you are seeing when you open the TIF is the insides of the Cookies index.dat file (I know that sounds weird, but it is true). The Cookies folder holds your actual cookies.
The Temp folder can be used to hold files that will be used during the reboot process. It will hold files that are “in use” by Windows and then swap them when you reboot. I think Windows Update used to use this folder, but now it creates its own “WUTemp” folder to use. Other programs still use it to hold files during reboot.
The standard procedure is to “Rename” the files during reboot by using the transient “wininit.ini” file. An example of one is here:
[Rename]
NUL=C:WINDOWSSYSTEMSHDOCVW.DLL
C:WINDOWSSYSTEMSHDOCVW.DLL=C:WINDOWSTEMPSET7203.TMP
NUL=C:WINDOWSSYSTEMURLMON.DLL
C:WINDOWSSYSTEMURLMON.DLL=C:WINDOWSTEMPSET7241.TMPThis deletes the shdocvw.dll and urlmon.dll files (renames them “nul”) and then swaps in new ones from the Temp directory. You could NOT do this in Windows (the files are “in use”), but the wininit.ini file runs EARLY in the boot sequence (before WIndows is ‘active’). If you then EMPTY the Temp folder LATE in the boot sequence (i.e., after Windows has started — like from the Startup folder) you are not in any risk of deleting important files.
________I hope that is at least partially comprehensible. If not, let me know…
-
WSR2
AskWoody LoungerSeptember 30, 2003 at 9:16 pm #722291Just to lend support to this thread and Phil’s comments. The “Temp” folder is not supposed to hold your Temporary Internet Files folder — although I have seen boxes where this inappropriate relationship existed!
The Temporarily Internet Files folder does not really hold your cookies — what you are seeing when you open the TIF is the insides of the Cookies index.dat file (I know that sounds weird, but it is true). The Cookies folder holds your actual cookies.
The Temp folder can be used to hold files that will be used during the reboot process. It will hold files that are “in use” by Windows and then swap them when you reboot. I think Windows Update used to use this folder, but now it creates its own “WUTemp” folder to use. Other programs still use it to hold files during reboot.
The standard procedure is to “Rename” the files during reboot by using the transient “wininit.ini” file. An example of one is here:
[Rename]
NUL=C:WINDOWSSYSTEMSHDOCVW.DLL
C:WINDOWSSYSTEMSHDOCVW.DLL=C:WINDOWSTEMPSET7203.TMP
NUL=C:WINDOWSSYSTEMURLMON.DLL
C:WINDOWSSYSTEMURLMON.DLL=C:WINDOWSTEMPSET7241.TMPThis deletes the shdocvw.dll and urlmon.dll files (renames them “nul”) and then swaps in new ones from the Temp directory. You could NOT do this in Windows (the files are “in use”), but the wininit.ini file runs EARLY in the boot sequence (before WIndows is ‘active’). If you then EMPTY the Temp folder LATE in the boot sequence (i.e., after Windows has started — like from the Startup folder) you are not in any risk of deleting important files.
________I hope that is at least partially comprehensible. If not, let me know…
-
WSPhil Rabichow
AskWoody LoungerSeptember 29, 2003 at 3:50 pm #721649Hi Doc:
I wish I had learned more about DOS, too. I just get tips from others. R2 once posted a web site that gave basic DOS commands & their explanation, but I can’t find it right now.In any event, to answer your question, the command deletes everything in the Temp folder. However, no cookies are stored in the temp folder & so they’re not deleted. On my system, the default location is C:WindowsCookies. The only thing that’s deleted are files & folders in the Temp folder. The primary files that this shortcut deletes are the temp files that the system puts there. For me, it’s usually when Word crashes.
Zone Alarm puts a bunch of temporary log files there also.
I read somewhere that the system uses temp files as you boot up, but this shortcut runs late in the boot process & doesn’t interfere with any programs, as far as I can tell. In combination with Neil Rubenking’s End It All (from PC Magazine), the batch file is extremely handy.
Cheers,
-
-
WSDocWatson
AskWoody LoungerSeptember 29, 2003 at 11:14 am #721512Hi Phil,
I like the idea of being able to “custom-tailor” commands to perform everyday tasks more simply and often wish I had gotten into computing sooner, forcing me to learn DOS and the command line. Batch files and shortcuts such as the one you posted here seem to have the capabilities to perform these tasks quickly and easily without disrupting one’s work (or play
).
I do have one question about your shortcut that is directly related to my lack of knowledge about these things. When that command executes will it delete everything in the specified folder ?? Files, cookies, etc ??? The underlying reason for the question concerns cookies stored there for places like the lounge that help the site to recognize you when you visit. Disk Cleanup always seems to leave those behind, along with several other cookies that most of us would like deleted in the process.
-
-
WSPhil Rabichow
AskWoody LoungerSeptember 28, 2003 at 10:01 pm #721321Hi Mark:
I use a shortcut that deletes temp files every time I reboot. If you right click hte desktop & choose “Create shortcut”, then put this in the command line:C:WINDOWSCOMMANDDELTREE.EXE /y c:windowstemp
After you create your shortcut, you can put it in the Windows/Start Menu/ProgramsStartup folder.
Cheers,
-
-
WSMarkLiquorman
AskWoody Lounger
-
Viewing 0 reply threads -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
MS Passkey
by
pmruzicka
4 hours, 38 minutes ago -
Can’t make Opera my default browser
by
bmeacham
6 hours, 32 minutes ago -
*Some settings are managed by your organization
by
rlowe44
4 hours, 25 minutes ago -
Formatting of “Forward”ed e-mails
by
Scott Mills
5 hours, 27 minutes ago -
SmartSwitch PC Updates will only be supported through the MS Store Going Forward
by
PL1
1 day, 1 hour ago -
CISA warns of hackers targeting critical oil infrastructure
by
Nibbled To Death By Ducks
1 day, 10 hours ago -
AI slop
by
Susan Bradley
14 minutes ago -
Chrome : Using AI with Enhanced Protection mode
by
Alex5723
1 day, 11 hours ago -
Two blank icons
by
CR2
14 minutes ago -
Documents, Pictures, Desktop on OneDrive in Windows 11
by
ThePhoenix
1 day, 20 hours ago -
End of 10
by
Alex5723
1 day, 23 hours ago -
Single account cannot access printer’s automatic duplex functionality
by
Bruce
20 hours, 54 minutes ago -
test post
by
gtd12345
2 days, 5 hours ago -
Privacy and the Real ID
by
Susan Bradley
1 day, 19 hours ago -
MS-DEFCON 2: Deferring that upgrade
by
Susan Bradley
1 day, 11 hours ago -
Cant log on to oldergeeks.Com
by
WSJonharnew
2 days, 9 hours ago -
Upgrading from Win 10
by
WSjcgc50
21 hours, 4 minutes ago -
USB webcam / microphone missing after KB5050009 update
by
WSlloydkuhnle
1 day ago -
TeleMessage, a modified Signal clone used by US government has been hacked
by
Alex5723
3 days, 1 hour ago -
The story of Windows Longhorn
by
Cybertooth
2 days, 12 hours ago -
Red x next to folder on OneDrive iPadOS
by
dmt_3904
3 days, 3 hours ago -
Are manuals extinct?
by
Susan Bradley
3 hours, 21 minutes ago -
Canonical ditching Sudo for Rust Sudo -rs starting with Ubuntu
by
Alex5723
3 days, 12 hours ago -
Network Issue
by
Casey H
2 days, 23 hours ago -
Fedora Linux is now an official WSL distro
by
Alex5723
4 days ago -
May 2025 Office non-Security updates
by
PKCano
4 days ago -
Windows 10 filehistory including onedrive folder
by
Steve Bondy
4 days, 2 hours ago -
pages print on restart (Win 11 23H2)
by
cyraxote
3 days, 3 hours ago -
Windows 11 Insider Preview build 26200.5581 released to DEV
by
joep517
4 days, 4 hours ago -
Windows 11 Insider Preview build 26120.3950 (24H2) released to BETA
by
joep517
4 days, 4 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.