Solved

Windows Temp files.

Posted on 2000-05-03
9
228 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
Easy, flexible multimedia distribution & control

Coming soon!  Ideal for large-scale A/V applications, ATEN's VM3200 Modular Matrix Switch is an all-in-one solution that simplifies video wall integration. Easily customize display layouts to see what you want, how you want it in 4k.

 
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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
When you try to extract and to view the contents of a Microsoft Update Standalone Package (MSU) for Windows Vista, you cannot extract the files from the MSU. Here we are going to explain how to extract those hotfix details without using any third pa…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

856 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