Solved

Windows Temp files.

Posted on 2000-05-03
9
200 Views
Last Modified: 2013-12-28
What extension(s) do I need to add to:

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

to delete  hidden files in the windows temp folder.  This is ran as a batch file and cleans out temp files when a users logs on.








0
Comment
Question by:pbut835581
9 Comments
 
LVL 3

Accepted Solution

by:
israely earned 100 total points
ID: 2774810
add this line before the line you have listed:

attrib c:\windows\temp\*.* -h

I have never seen hidden files in temp directory.
0
 
LVL 3

Expert Comment

by:israely
ID: 2774819
Type:

attrib /?

to see all the switches avaiable at the dos prompt.
0
 
LVL 1

Expert Comment

by:m_santo
ID: 2774829
The *.* will make it delete all files with all extensions in the folder, already.

It will not, however, delete any subfolders.
0
 
LVL 1

Expert Comment

by:m_santo
ID: 2774835
m_santo changed the proposed answer to a comment
0
Do email signature updates give you a headache?

Do you feel like all of your time is spent managing email signatures? Too busy to visit every user’s desk to make updates? Want high-quality HTML signatures on all devices, including on mobiles and Macs? Then, let Exclaimer solve all your email signature problems today!

 
LVL 1

Expert Comment

by:m_santo
ID: 2774849
Whoops, I misread the question.  Missed the part about hidden files.  Sorry.
0
 
LVL 1

Expert Comment

by:m_santo
ID: 2774888
Whoops, I misread the question.  Missed the part about hidden files.  Sorry.
0
 
LVL 1

Expert Comment

by:red117
ID: 2775166
Why dont you just try deltree c:\windows\temp and delete the whole temp directory, when it tries to write to it again it will remake the directory.
0
 
LVL 7

Expert Comment

by:Ajnin
ID: 2775214
red117 idea is good, but to make not prompt the user, try the following syntax:
echo. Y|deltree c:\windows\temp
0
 

Author Comment

by:pbut835581
ID: 2775300
Thank you very much.  
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

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…
Update 11/3/2014 - Although the below article will get you to relocate the WINSXS folder, Microsoft has finally released a utility to reduce the size of the WINSXS folder. For some reason, it's not that straightforward. It only works on Windows 2008…
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…
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

746 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

11 Experts available now in Live!

Get 1:1 Help Now