Solved

Windows Temp files.

Posted on 2000-05-02
3
202 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you get continual lockouts after changing your Active Directory password, there are several possible reasons.  Two of the most common are using other devices to access your email and stored passwords in the credential manager of windows.
An article on effective troubleshooting
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

839 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