Solved

Windows Temp files.

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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
recover deleted files by error 37 105
do i need anti virus software with windows 10? 13 68
Runas admin but use local user profile 3 35
Problem to file 13 39
This is an article about Leadership and accepting and adapting to new challenges. It focuses mostly on upgrading to Windows 10.
Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…
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…

786 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