I use Windows.
I want to delete all files and folders in a folder by system call.
I may call like that:
>rd /s /q c:\destination
>md c:\destination
Do you know an easier way?
I use Windows.
I want to delete all files and folders in a folder by system call.
I may call like that:
>rd /s /q c:\destination
>md c:\destination
Do you know an easier way?
It takes 2 simple steps. [/q means quiet, /f means forced, /s means subdir]
Empty out the directory to remove
del *.* /f/s/q
Remove the directory
cd ..
rmdir dir_name /q/s
try this, this will search all MyFolder under root dir and delete all folders named MyFolder
for /d /r "C:\Users\test" %%a in (MyFolder\) do if exist "%%a" rmdir /s /q "%%a"
del .\*
This Command delete all files & folders from current navigation in your command line.