Solved

Windows Temp files.

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

In this article, I will show you HOW TO: Perform a Physical to Virtual (P2V) Conversion the easy way from a computer backup (image).
How to record audio from input sources to your PC ā€“ connected devices, connected preamp to record vinyl discs, streaming media, that play through your audio card: Vista, Windows 7, Windows 8, Windows 8.1 and Windows 10 ā€“ both 32 bit & 64.
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ā€¦
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

685 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