Find and Delete Folders using a bat

April 14, 2009 at 13:48:45
Specs: Windows XP
I am trying to search the C:Documents and Settings folder and find a specific folder name and have it get deleted. I have several users on one computer so it needs to look in each user name directory and find this folder. This is what I have so far:
rmdir /s "C:\Documents and Settings\*\Application Data\Autodesk\AutoCAD 2010"
Not sure how to get the wild card to work for me. Or maybe I am in the wrong idea realm all together. Thanks for any help.

See More: Find and Delete Folders using a bat

Report •

April 14, 2009 at 18:31:11
if you can download find for windows (see my sig)
find "C:\document ...." -type d -name "pathname" -delete

Unix Win32 tools | Gawk for Windows

Report •

April 15, 2009 at 06:15:27
FOR %%a IN (""C:\Documents and Settings\*") DO RD /S /Q "%%a\Application Data\Autodesk\AutoCAD 2010" 2>NUL

Report •

Related Solutions

Ask Question