Reputation: 101
I m new to bat file. I have folder suppose "A" and this folder has subfolder as "B", "C", "D" these folder again has there own subfolders. my problem is that each subfolders and parent folder have CVS folder , I want to delete that folder from each directories. How to do that in bat file.
Upvotes: 6
Views: 6067
Reputation: 621
Go to the place where you want to delete all CVS folders. In windows in explorer, type "CVS" in the search box. And click enter. Select all, and delete. Now it is done. :)
Upvotes: 20
Reputation: 4254
Try to do
cvs export -DNOW module_name
instead of
cvs co module_name
Then you don't need to remove anything.
Upvotes: 1
Reputation: 354694
Usually you should use cvs export
to get a clean copy of the course without the working copy folders.
But you can use a for
loop to remove those folders as well:
for /r /d %%f in (*) do if "%%f"=="CSV" rd /s /q "%%f"
Upvotes: 1
Reputation: 501
This should do the job:
FOR /F "tokens=*" %%G IN ('DIR /B /AD /S cvs') DO RMDIR /S /Q %%G
Upvotes: 3