|Try using RMDIR instead of DEL|
Instead of using wildcards, you can use variables in a for loop:
...\Profiles\*\ONLY the Folders\
I assume you want to delete all folders in every directory in Profiles.
Just to point you in the right direction.
:: Not tested
for /f "tokens=*" %%A in ('dir /B /A:D "%CD%"') do (
for /f "tokens=*" %%B in ('dir /B /A:D "%%A"') do (
:: rmdir /s /q %%B
Change %profilesPathToFirefox% to the actual path.
Remove the "::" before the RMDIR command to enable deletion.
Hope this helps.
Marking answers that solve, or help helps you solve a problem as "Best Answer" also helps other people solve similiar ones in the future.
message edited by RainBawZ