| | |
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 3.5 3daccelertion 2007 2010 activedirectory alaris apache application arm auto automatically black blue book boot cellphones chinese collaboration computer computerfreezes crash desktop desktops dns domain dotnetnuke downloads drive error errors explorer features firefox folder fontmanagers fonts gadgets install intel killprocess laptop laptops latitude linux load login mac microsoft minimalizes mobile monitor netbooks novell nvidia operatingsystems osinstallationproblem osx outlook partition patch port product proxy raid rds remotedesktopconnection repair replacingraiddrive rootkit screen server. simplifiedchinese sp1 sp3 spyware ubuntu unreadable update usb verizon videogames virtual virus vista visual volume vulnerability wab webos weecam win win32/heur window windows windows7 windowsxp windowsxpnotstartingup. worm xp






