rmdir
does not support wildcards. It only accepts complete filenames.
You can try this alternative:
for /d %f in ("C:\Program Files\FogBugz\Plugins\cache\PluginName@example.com_*") do rmdir /s/q "%~f"
(The /s/q
arguments to rmdir
do the same thing as rm -rf
on Unix. The for /d
argument makes for
match directory names instead of file names.)
Remember that the cmd.exe
shell does not do wildcard expansion (unlike Unix sh
) -- this is handled by the command itself.