<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Python script: rename.py</title>
	<atom:link href="http://www.mattweber.org/2007/03/04/python-script-renamepy/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mattweber.org/2007/03/04/python-script-renamepy/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=python-script-renamepy</link>
	<description>Just another WordPress site</description>
	<lastBuildDate>Tue, 08 Nov 2011 14:24:19 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: baha</title>
		<link>http://www.mattweber.org/2007/03/04/python-script-renamepy/#comment-27</link>
		<dc:creator>baha</dc:creator>
		<pubDate>Mon, 21 Mar 2011 02:54:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.mattweber.org/2007/03/04/python-script-renamepy/#comment-27</guid>
		<description>why don&#039;t you use easytag?</description>
		<content:encoded><![CDATA[<p>why don&#8217;t you use easytag?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: KraYmer</title>
		<link>http://www.mattweber.org/2007/03/04/python-script-renamepy/#comment-26</link>
		<dc:creator>KraYmer</dc:creator>
		<pubDate>Sat, 12 Feb 2011 10:04:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.mattweber.org/2007/03/04/python-script-renamepy/#comment-26</guid>
		<description>Thanx, I had a bunch of *srt files to rename, it&#039;s perfect tool for the job.</description>
		<content:encoded><![CDATA[<p>Thanx, I had a bunch of *srt files to rename, it&#8217;s perfect tool for the job.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jcypher</title>
		<link>http://www.mattweber.org/2007/03/04/python-script-renamepy/#comment-25</link>
		<dc:creator>jcypher</dc:creator>
		<pubDate>Wed, 29 Dec 2010 03:19:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.mattweber.org/2007/03/04/python-script-renamepy/#comment-25</guid>
		<description>Excellent, just took care of bunches of commas in about 7000 mp3 filenames.  Thanks!

It would be nice if it took care of directory names too. :)</description>
		<content:encoded><![CDATA[<p>Excellent, just took care of bunches of commas in about 7000 mp3 filenames.  Thanks!</p>
<p>It would be nice if it took care of directory names too. <img src='http://www.mattweber.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://www.mattweber.org/2007/03/04/python-script-renamepy/#comment-24</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Mon, 08 Nov 2010 16:17:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.mattweber.org/2007/03/04/python-script-renamepy/#comment-24</guid>
		<description>I&#039;ve just solved the problem.
On DevShed forum some kind guy reccomended me to use glob. It worked for me so nice, I only modified 1 string and added 1 string.

Thank you for great script, Matt!

Paul &gt;&gt;&gt;RAM&gt;&gt;&gt;.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve just solved the problem.<br />
On DevShed forum some kind guy reccomended me to use glob. It worked for me so nice, I only modified 1 string and added 1 string.</p>
<p>Thank you for great script, Matt!</p>
<p>Paul &gt;&gt;&gt;RAM&gt;&gt;&gt;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://www.mattweber.org/2007/03/04/python-script-renamepy/#comment-23</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Fri, 05 Nov 2010 13:38:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.mattweber.org/2007/03/04/python-script-renamepy/#comment-23</guid>
		<description>No, spaces in foldernames isn&#039;t the problem. The problem is wildcard *

ERROR &quot;The filename, directory name, or volume label syntax is incorrect&quot;

[and by the way, how can I type several filenames (as mentioned in program usage) containing spaces??] </description>
		<content:encoded><![CDATA[<p>No, spaces in foldernames isn&#8217;t the problem. The problem is wildcard *</p>
<p>ERROR &#8220;The filename, directory name, or volume label syntax is incorrect&#8221;</p>
<p>[and by the way, how can I type several filenames (as mentioned in program usage) containing spaces??]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://www.mattweber.org/2007/03/04/python-script-renamepy/#comment-22</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Fri, 05 Nov 2010 12:56:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.mattweber.org/2007/03/04/python-script-renamepy/#comment-22</guid>
		<description>I have the same problem as Eric.
My OS: Windows Vista.
I can guess that it&#039;s because I have spaces in foldernames and filenames, I tried to type full path of one file and get several errors each containing letters between spaces.

Maybe I&#039;m wrong.

Any suggestions how I can use this script or modify it so that I will be able to use it?</description>
		<content:encoded><![CDATA[<p>I have the same problem as Eric.<br />
My OS: Windows Vista.<br />
I can guess that it&#8217;s because I have spaces in foldernames and filenames, I tried to type full path of one file and get several errors each containing letters between spaces.</p>
<p>Maybe I&#8217;m wrong.</p>
<p>Any suggestions how I can use this script or modify it so that I will be able to use it?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nicolas</title>
		<link>http://www.mattweber.org/2007/03/04/python-script-renamepy/#comment-21</link>
		<dc:creator>Nicolas</dc:creator>
		<pubDate>Mon, 28 Jun 2010 23:32:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.mattweber.org/2007/03/04/python-script-renamepy/#comment-21</guid>
		<description>Eric,

It seems that wildcard characters are not recognized by os.path in Windows. To make it work, you can modify the rename.py file:

After &quot;import os&quot;
Add &quot;import glob&quot;

Replace &quot;for filename in args:&quot;
By &quot;for filename in sum(map(glob.glob, args),[]):&quot;

I tried renaming a directory of pdfs. Works great!</description>
		<content:encoded><![CDATA[<p>Eric,</p>
<p>It seems that wildcard characters are not recognized by os.path in Windows. To make it work, you can modify the rename.py file:</p>
<p>After &#8220;import os&#8221;<br />
Add &#8220;import glob&#8221;</p>
<p>Replace &#8220;for filename in args:&#8221;<br />
By &#8220;for filename in sum(map(glob.glob, args),[]):&#8221;</p>
<p>I tried renaming a directory of pdfs. Works great!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gunnar Thielebein</title>
		<link>http://www.mattweber.org/2007/03/04/python-script-renamepy/#comment-20</link>
		<dc:creator>Gunnar Thielebein</dc:creator>
		<pubDate>Thu, 03 Jun 2010 16:15:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.mattweber.org/2007/03/04/python-script-renamepy/#comment-20</guid>
		<description>Does what it promises. Thanks for publishing that!</description>
		<content:encoded><![CDATA[<p>Does what it promises. Thanks for publishing that!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric</title>
		<link>http://www.mattweber.org/2007/03/04/python-script-renamepy/#comment-19</link>
		<dc:creator>Eric</dc:creator>
		<pubDate>Fri, 05 Mar 2010 20:57:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.mattweber.org/2007/03/04/python-script-renamepy/#comment-19</guid>
		<description>Any advice for using this script in Windows (Vista 64 SP2)?  I get an error when I try to use wildcard characters, even if I specify the file path.  Ideas appreciated.

F:Workspacewebsitetest&gt;python rename.py -f10 -r &quot;_County_300dpi_Binary_Georef
d&quot; &quot;HistoricCountyHighwayMapScan_wvsrc_1937_utm83&quot; f:/workspace/website/test/WVD
OH*.rrd

Error renaming &#039;f:/workspace/website/test/WVDOH*.rrd&#039;: The filename, directory n
ame, or volume label syntax is incorrect</description>
		<content:encoded><![CDATA[<p>Any advice for using this script in Windows (Vista 64 SP2)?  I get an error when I try to use wildcard characters, even if I specify the file path.  Ideas appreciated.</p>
<p>F:Workspacewebsitetest&gt;python rename.py -f10 -r &#8220;_County_300dpi_Binary_Georef<br />
d&#8221; &#8220;HistoricCountyHighwayMapScan_wvsrc_1937_utm83&#8243; f:/workspace/website/test/WVD<br />
OH*.rrd</p>
<p>Error renaming &#8216;f:/workspace/website/test/WVDOH*.rrd&#8217;: The filename, directory n<br />
ame, or volume label syntax is incorrect</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hobs</title>
		<link>http://www.mattweber.org/2007/03/04/python-script-renamepy/#comment-18</link>
		<dc:creator>hobs</dc:creator>
		<pubDate>Thu, 24 Sep 2009 20:55:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.mattweber.org/2007/03/04/python-script-renamepy/#comment-18</guid>
		<description>Great script, worked like a charm renaming the first few letters of 100 folders for me in one second.
python rename.py -f11 -v *</description>
		<content:encoded><![CDATA[<p>Great script, worked like a charm renaming the first few letters of 100 folders for me in one second.<br />
python rename.py -f11 -v *</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced
Database Caching 1/3 queries in 0.002 seconds using disk: basic
Object Caching 286/287 objects using disk: basic

Served from: www.mattweber.org @ 2012-02-05 00:46:20 -->
