FOR & DEL /f /ah

Dell PRECISION
March 12, 2010 at 10:08:50
Specs: Windows XP, 3mhz/2 gig
Hi all, I wrote this bit to clear the recycle bin in XP. Problem is that my DEL /F isn't working, it keeps prompting me to delete the files. I chose the /F so I wouldn't have to do that. Would you help? The Pause>nul is just for testing purposes!
Thank you.
++++++++++++++++++++++++++++
@echo off & cls & setlocal enabledelayedexpansion
::// CLEAR RECYCLE BIN
cd\
cd recycler
cls
for /f %%a in ('dir /ah /b') do (
cd %%a
del /f /ah *.*
del /f *.*
pause>nul
cd\recycler
cls
)
echo END & pause>nul

See More: FOR & DEL /f /ah

Report •

#1
March 12, 2010 at 10:51:09
I got it!

Used /q
++++++++++++++++++++++++

del /f /q /ah *.*
del /f /q *.*


Report •
Related Solutions


Ask Question