Deltree is not working under XP?
I would like to create a batch file to clean Temp folder under XP, but I find out Deltree command is not working under XP.deltree /y c:\WINDOWS\Temp\*.*Does anyone have any suggestions on how to modify the above coding to perform cleaning? Thank everyone very much for any suggestions1 person got this answerI do too
August 5th, 2010 10:51am

I wrote this batch file to accomplish the same thing:rd /S /Q c:\wutempmd c:\wutempI have it set in Scheduled Tasks to run approximately an hour or so after my normal boot time. Edit "C:\wutemp" to your temp folder. I just have wutemp set as the folder to use in my tmp and temp variables, both for my user and the system.It will not remove the directory if there is anything in it that is in use, but on the off chance that nothing is in use at the time, I added the MD command. It will not create more directories if the one already exists.The reason I have it set to run after the system has been up for a while is because some program installations and updates that require a reboot write files to the temp folder, and you don't want to delete them before that process completes.SC Tom
Free Windows Admin Tool Kit Click here and download it now
August 5th, 2010 3:43pm

I store the batch file under D:\ driveWhen I activate the batch file containing following coding, it cannot remove dir. Maybe some files are being used,When it activate making dir command, it creates "and" and "Setting" directories under D: drive, it separates create "and" and "Setting" folders, but I don't see "Documents" folder.Do you have any suggestions on how to properly code the batch file for following directory?rd /S /Q C:\Documents and Settings\Eric\Local Settings\Tempmd C:\Documents and Settings\Eric\Local Settings\TempThank everyone very much for any suggestions
August 5th, 2010 6:17pm

Enclose the path in quotes. That has to be done if there are spaces.rd /S /Q "C:\Documents and Settings\Eric\Local Settings\Temp"md "C:\Documents and Settings\Eric\Local Settings\Temp"Try that and see if it works.SC Tom
Free Windows Admin Tool Kit Click here and download it now
August 5th, 2010 8:18pm

you must to download deltree.exe from the web e.g. http://terrikaduck.netfirms.com/deltree.htm and save into the directory c:\windows first or you can use rmdir command the same.
September 8th, 2010 4:38am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics