FOR /r /d %D in (CVS*) do @rmdir /q /s "%D"
In Windows, go to the root directory of your project, enter the line above into the command prompt and all your CVS directories will be gone :) (Disclaimer: Be careful with wildcard deletes like this -- double check that you've entered it correctly, that you're in the right directory and that you have no other directories that begin with "CVS". Don't come banging at my door if you accidentally wipe out your hard-drive!)
Of course, the best thing is never to get into these situations. You can easily use a tool like Tortoise CVS (or the command line) to Export a copy of your project without the CVS directories.
The Goodbye CVS! article by Aral Balkan, unless otherwise expressly stated, is licensed under a Creative Commons Attribution-Noncommercial 2.0 UK: England License.
[...] I’ve used Aral Balkan’s command from this link though it wasn’t working for me, because my CVS folders were read only and hidden. If your CVS folders aren’t hidden then I recommend you use Aral’s approach which is much faster. [...]
I know you no longer use windows anymore, but this command wasn’t deleting the hidden CVS folders. I’ve updated the command to also delete the hidden CVS folders:
for /f “tokens=*” %%i in (’dir /b/a/s CVS*’) do @rmdir /q /s “%%i”
It might be useful for someone.
I’ve also posted some info to add to the windows explorer context menu:
http://danieltome.com/index.php/2007/01/13/delete-cvs-files/
If you’re ever coming down under near Sydney, let me know and I’ll buy you a beer ;-)
cheers,
Thanx to both of you, come to india you will get a dinner for this :)
Thanks Buddy :)
It saves me lot of time.. I surely by u a beer !! :) ;)
Come to India.. :)
Cheers,
Kedar