In one line - I do not think that you can...
Command RD (RMDIR) /s allows you to remove directory and subdirs and files in it, BUT it removes the dir itself too...
If you want to remove EVERYTHING in dir (incl. subdirs AND files) then the two commands option is:
RD /s/q myDir
MD myDir
If this is NOT suitable, then you will have to loop through directory content and RD /s each of the subdirs...
No comments:
Post a Comment