Need to empty a folder in Windows 7 from the command prompt or batch file. This means deleting all the files and all sub folders and leaving the empty folder.
del /s /q leaves empty subfolders so this solution doesn't work for me. I don't want to delete and recreate the folder either.
| |||||||
feedback
|
|
You can use the sdelete (Secure delete) command to clean a folder.
from with in said folder to clear all of the contents. | |||||
feedback
|
|
Try the RMDIR (or aka the RD) command.
| |||
feedback
|