I'm running a batch file to delete the contents (and sub-folders) of a temp directory based on the subfolder names existing in deletedirs.txt
FOR /F %%i IN (C:\deletedirs.txt) DO del "C:\temppurge\*" rmdir /s /q "C:\temppurge\"%%i
Deletes the contents of the sub-folders in the temppurge directory but leaves the sub-folders themselves in tact. What am I missing?