Batch file
for /f "delims=" %%f in (7profiledeletelist.txt) do rd /s /q "%%f" PAUSE exit 7profiledeletelist.txt
C:\Users\1* C:\Users\2* C:\Users\3* C:\Users\4* C:\Users\5* C:\Users\6* C:\Users\7* C:\Users\8* C:\Users\9* C:\Users\M* C:\Users\T* After reading the 7profiledeletelist.txt file, the bat file can not delete anything.
If I remove * and write the exact name of the directory it is working well. I want to delete all folders starting with M, T, 1 until 9 in the Users directory.
How does 7profiledeletelist.txt or the batch script need to change in order to make it work? Is there a mistaken code in the batch script?