Answers for "cmd delete all files in folder except"

0

delete all files in a directory cmd

del /S C:\Path\to\directory\*
Posted by: Guest on October-23-2020
0

batch delete all folders and files

for /F "delims=" %%i in ('dir /b') do (rmdir "%%i" /s/q || del "%%i" /s/q)
Posted by: Guest on June-08-2021

Code answers related to "cmd delete all files in folder except"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language