I have a folder ‘FolderA’ which contains three sub-folders: foldera1 foldera2 and foldera3
I need to write a batch file which resides inside ‘FolderA’. It should delete all the folders under ‘FolderA’ as a cleanup activity. I don’t know the folder names. rmdir does not support wild cards.
Could someone provide a solution for this small problem?
something like :
should do the trick. The second form allow some wildcard selection for directories.
To test it outside a script, in a plain DOS session:
Note the double quotes, in order to be able to delete directories with spaces in them.