<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Daniel Tome's blog &#187; CVS</title>
	<atom:link href="http://www.danieltome.com/blog/category/cvs/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.danieltome.com/blog</link>
	<description>Flash, PHP, Open Source, Actionscript, Australia and Argentina stuff.</description>
	<lastBuildDate>Tue, 18 Nov 2008 00:48:06 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Delete CVS files</title>
		<link>http://www.danieltome.com/blog/2007/01/13/delete-cvs-files/</link>
		<comments>http://www.danieltome.com/blog/2007/01/13/delete-cvs-files/#comments</comments>
		<pubDate>Sat, 13 Jan 2007 00:08:00 +0000</pubDate>
		<dc:creator>Danno</dc:creator>
				<category><![CDATA[Batch Scripts]]></category>
		<category><![CDATA[CVS]]></category>

		<guid isPermaLink="false">http://danieltome.com/index.php/2007/01/13/delete-cvs-files/</guid>
		<description><![CDATA[When you copy files from a CVS Repository you always get those CVS folders and files.
If you want to delete them and you don&#8217;t have access to the CVS Server than you can use this command line:
(updated, as code. If you copied it before 2007-01-16 the quotes weren&#8217;t correctly outputed)
for /f "tokens=*" %%i in ('dir [...]]]></description>
			<content:encoded><![CDATA[<p>When you copy files from a CVS Repository you always get those CVS folders and files.<br />
If you want to delete them and you don&#8217;t have access to the CVS Server than you can use this command line:<br />
(updated, as code. If you copied it before 2007-01-16 the quotes weren&#8217;t correctly outputed)</p>
<pre>for /f "tokens=*" %%i in ('dir /b/a/s CVS*') do @rmdir /q /s "%%i"
</pre>
<p>I&#8217;ve used Aral Balkan&#8217;s command from <a title="Good By CVS!" href="http://aralbalkan.com/15" target="_blank">this link</a> though it wasn&#8217;t working for me, because my CVS folders were read only and hidden. If your CVS folders aren&#8217;t hidden then I recommend you use Aral&#8217;s approach which is much faster.</p>
<p>Have fun and batch safely. I will not be held responsible if you delete any unwanted files. <img src='http://www.danieltome.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /><br />
If you feel uncomfortable executing this command, try replacing @rmdir with echo this will give you a glimpse of what you&#8217;ll be deleting.<br />
If you find yourself running the script quite often, then you can add the command to your windows explorer right-click context menu by creating a batch file.</p>
<p>Here&#8217;s the code for the batch file:</p>
<pre>@echo off
echo Deleting CVS folders and files under: %1
REM Open Folder specified by parameter.
cd %1
REM Recursive delete command
for /f "tokens=*" %%i in ('dir /b/a/s CVS*') do @rmdir /q /s "%%i"
echo Done!
</pre>
<p>Open regedit and goto: My Computer\HKEY_CLASSES_ROOT\Folder\shell\<br />
Create a new entry: &#8220;Delete CVS Files&#8221; and under that one, create a new key called: command<br />
In Value add the path to the batch file created with %D %L at the end.<br />
Here are some screen shots:</p>
<p>Right button click Context Menu.</p>
<p><img id="image13" title="Delete CVS File Context Menu" src="http://danieltome.com/blog/wp-content/uploads/2007/01/delcvs.gif" alt="Delete CVS File Context Menu" /></p>
<p>Regedit. Adding the folder right button click:</p>
<p><img id="image14" title="Regedit Folder Context Menu" src="http://danieltome.com/blog/wp-content/uploads/2007/01/delcvs_reged.gif" alt="Regedit Folder Context Menu" /></p>
<p>*UPDATE*: Comments are closed for this post. I was getting too many spam.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.danieltome.com/blog/2007/01/13/delete-cvs-files/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
	</channel>
</rss>
