| | |
Creating a batch file to clear out Temp files
![]() |
•
•
Join Date: Mar 2007
Posts: 1
Reputation:
Solved Threads: 0
Hello,
I'm trying to create a batch file that will delete & remake temporary directories, but it isn't working. There are two directories that I want to do this two, and the second one doesn't work. here is the code:
@echo off
rd c:\windows\TEMP /s /q
md C:\windows\TEMP
rd C:\Documents and Settings\christ\Local Settings\Temp /s /q
md C:\Documents and Settings\christ\Local Settings\Temp
Are the spaces in the directory the problem? If so, how do i fix it?
Thanks,
Chris
I'm trying to create a batch file that will delete & remake temporary directories, but it isn't working. There are two directories that I want to do this two, and the second one doesn't work. here is the code:
@echo off
rd c:\windows\TEMP /s /q
md C:\windows\TEMP
rd C:\Documents and Settings\christ\Local Settings\Temp /s /q
md C:\Documents and Settings\christ\Local Settings\Temp
Are the spaces in the directory the problem? If so, how do i fix it?
Thanks,
Chris
•
•
Join Date: Jun 2008
Posts: 1
Reputation:
Solved Threads: 0
This will work as long as the TEMP dir is empty or it is not locked by another process.
Any solution for such scenario? I have "BITxx" files (where xx are random digits) that keep multiplying and growing in the TEMP dir. I can delete ALL of them except for ONE. Once I do that, I see more files being recreated. Please advise.
Any solution for such scenario? I have "BITxx" files (where xx are random digits) that keep multiplying and growing in the TEMP dir. I can delete ALL of them except for ONE. Once I do that, I see more files being recreated. Please advise.
•
•
•
•
Hello,
I'm trying to create a batch file that will delete & remake temporary directories, but it isn't working. There are two directories that I want to do this two, and the second one doesn't work. here is the code:
@echo off
rd c:\windows\TEMP /s /q
md C:\windows\TEMP
rd C:\Documents and Settings\christ\Local Settings\Temp /s /q
md C:\Documents and Settings\christ\Local Settings\Temp
Are the spaces in the directory the problem? If so, how do i fix it?
Thanks,
Chris
![]() |
Similar Threads
- MS Batch File Copying (Legacy and Other Languages)
- Batch file in ASP.Net to convert Excel files into higher version (ASP.NET)
- Creating Batch Files in WIndows XP (Windows NT / 2000 / XP)
- Create EXE to delete files in TEMP Directory (Windows NT / 2000 / XP)
- Logon Script - Batch file assistance required (Windows NT / 2000 / XP)
- XP & Cleaning Temp files (Windows 95 / 98 / Me)
- batch file help - extraction (Windows NT / 2000 / XP)
Other Threads in the Windows NT / 2000 / XP Forum
- Previous Thread: SATA RAID Drivers / XP wont boot
- Next Thread: Black screen when windows boots up (unique!)
| Thread Tools | Search this Thread |
.net 64bit 2007 2010 a.exe activedirectory address android apache appstore automatically black blue bsod bulletin canonical chinese chkdsk codeplex combofix cursor deployment deployments desktop dns drive eartlink error errors explorer fax features fontmanagers format framework freeze hardware home internet interoperability laptop laptops lcd linux login mac markshuttleworth memory microsoft monitor motionle1600 netbooks novell nvidia open opensource operatingsystems options oracle osinstallationproblem osx palm partition printer product program proxy reformat remotedesktop repair replacingraiddrive retail retrieve screen security sharepoint simplifiedchinese sitetositevpn slowperformance sp3 spyware studios technology ubuntu update upgrade videodrivers videogames virus vista visual vpn win win32/heur windows windows7 windowsxp windowsxpnotstartingup. xp xpde






