I need to delete a number of directories which start off with similar names, for example I would like to delete all of the directories
C:\\MyProgram\\Tool.dir.1.data
C:\\MyProgram\\Tool.dir.2.files
C:\\MyProgram\\Tool.dir.3.plugins
C:\\MyProgram\\Tool.dir.4.config
C:\\MyProgram\\Tool.dir.5.data
C:\\MyProgram\\Tool.dir.6.backup
C:\\MyProgram\\Tool.dir.7.files
If I write
RmDir /r "C:\MyProgram\Tool.dir.*"
nothing seems to happen, and the error flag doesn't seem to be set. Is there a quick and easy way to do this multiple deletion?