Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Windows Temp files.

Posted on 2000-05-03
9
Medium Priority
?
243 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
9 Comments
 
LVL 3

Accepted Solution

by:
israely earned 400 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
Create the perfect environment for any meeting

You might have a modern environment with all sorts of high-tech equipment, but what makes it worthwhile is how you seamlessly bring together the presentation with audio, video and lighting. The ATEN Control System provides integrated control and system automation.

 
LVL 1

Expert Comment

by:m_santo
ID: 2774835
m_santo changed the proposed answer to a comment
0
 
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

Independent Software Vendors: 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

An introduction to the wonderful sport of Scam Baiting.  Learn how to help fight scammers by beating them at their own game. This great pass time helps the world, while providing an endless source of entertainment. Enjoy!
By default Outlook 2016 displays only one time zone in the Calendar. The following article explains how to display two time zones in one calendar view.
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…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…

730 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