Answer» Hi new here...I did a SEARCH and read through a few related topics but couldn't put together something for my needs .
I CREATED a batch file to delete all the directories and subdirectories labeled "CVS" from my root directory.
This what I came up with but it only deletes the CVS folder in the root directory then says "The system cannot find the file specified" when I continue through the loop.
for /f %%i in ('dir') do rmdir CVS. /s
If someone could give me a HINT as to what I'm doing wrong I would greatly appreciate it. Thanks.
Ok its re-checking the same folder ....now to SEE if I can figure out how to MAKE it check the subfolders for subfolders ans delete em.set Folder=? FOR /f "delims=" %%i IN ('DIR /b %Folder%') DO IF EXIST %Folder%%%i\nul ( rmdir %Folder%%%i )
|