Solved

Windows Temp files.

Posted on 2000-05-02
3
194 Views
Last Modified: 2013-12-28
Every time a user launches anything from withing Lotus Notes an exact replica of the file is stored in the windows temp file. The temp file can reach 40mb at times.  Everyone knows the problems associated with having to much in the windows temp file. Rather than installing a program like Tweak UI on each users PC, (which could be very dangerous) what would be the best way to empty the temp file with no user interaction.  
0
Comment
Question by:pbut835581
3 Comments
 
LVL 1

Expert Comment

by:RickWillkins
ID: 2770664
perhaps a line in the autoexec bat?

del c:\windows\*.tmp
0
 
LVL 1

Accepted Solution

by:
m_santo earned 200 total points
ID: 2770761
That won't work ... it will prompt the user.  Besides, it's the wrong directory.

You'd have to do:

echo Y | del c:\windows\temp\*.*

However, this won't delete any subdirectories.  To do that, you'd have to delete the entire temp directory, then recreate it.

You could try:

deltree /y c:\windows\temp
md c:\windows\temp

However, I will warn you that some installers will actually leave some items in c:\windows\temp, then reboot in order to complete the installation ... but if these are executed, all the temp files are gone.

Good luck.
0
 

Author Comment

by:pbut835581
ID: 2770841
Thank you!
0

Featured Post

Want to promote your upcoming event?

Attending an event? Speaking at a conference? Or exhibiting at a tradeshow? Easily inform your contacts by using a promotional banner in your email signature. This will ensure your organization’s most important contacts are in the know.

Join & Write a Comment

For a variety of reasons, it sometimes makes sense to reboot a Windows-based computer on a regular, perhaps daily basis. This "cures" a lot of ills by resetting processes, flushing caches, refreshing memory, and reestablish network connections. In a…
Several part series to implement Internet Explorer 11 Enterprise Mode
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now