I am trying to write a batch that deletes multiple directories/folders in a directory
I am using
for /D %f in (*) do rmdir %f /s /q
Now this works and deletes folder names that dont contain a space.
I recieve this message after running the above command for the folders that do.
d:\test\testworld\rmdir remove me /s /q
The system cannot find the file specified.
The system cannot find the file specified.
Most of the folders contain spaces. Is there anyway i could change the command to include folders with spaces?