Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Delete CVS folder from all subfolder in windows

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.

like image 661
user1545059 Avatar asked Jul 30 '12 11:07

user1545059


People also ask

How do I remove all files from a subfolder?

CD [Your_Folder] && RMDIR /S /Q . From Windows Command-Line Reference: /S: Deletes a directory tree (the specified directory and all its subdirectories, including all files).

How do I remove a folder from my CVS repository?

Remove the file from your working copy of the directory. You can for instance use rm . Use ' cvs remove filename ' to tell CVS that you really want to delete the file. Use ' cvs commit filename ' to actually perform the removal of the file from the repository.

How do you remove all files from subfolders and relocate them to one folder?

To quicken up this process, Click Ctrl + A, Highlight all the files (that you want to move) and right click, Cut and Paste the files to the desired directory.

How do I delete a folder and subfolder?

To remove a directory and all its contents, including any subdirectories and files, use the rm command with the recursive option, -r . Directories that are removed with the rmdir command cannot be recovered, nor can directories and their contents removed with the rm -r command.


2 Answers

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. :)

like image 76
user1695166 Avatar answered Sep 24 '22 17:09

user1695166


This should do the job:

FOR /F "tokens=*" %%G IN ('DIR /B /AD /S cvs') DO RMDIR /S /Q %%G
like image 42
BxlSofty Avatar answered Sep 20 '22 17:09

BxlSofty