1.

Solve : eras forders using batch file?

Answer»

I'm trying to erase the content of a specific folder with a batch file, not the folder, but just everything inside it. I am using:

DEL  c:\TEMP\*.* /s/f/q

and it works great, the only problem is that it only ERASES files not sub folders. How can I get it to erase EVERYTHING inside my "c:\Temp" folder?

Thanks

cd /d c:\temp & del /q *.* & for /f "DELIMS=" %%A in ('dir /b /ad') do rd /s /q "%%~dpnA"

thanks a lot Salmon Trout, it's work perfectly



Discussion

No Comment Found