| Forum Home | ||||
| Press F1 | ||||
| Thread ID: 131274 | 2013-04-30 22:13:00 | script to delete files and folder in windows server | Gobe1 (6290) | Press F1 |
| Post ID | Timestamp | Content | User | ||
| 1339084 | 2013-05-01 04:29:00 | This seems to work: del c:\Test\*.* /F /Q /S //this will remove all files (not folders) for /f "delims=" %%i in ('dir /ad /b "c:\Test\"') do @rd /q /s "c:\Test\%%i" //this will remove the folders but not the top directory END |
kmanz (16976) | ||
| 1 2 | |||||