<?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/"
	>

<channel>
	<title>MarkC.net</title>
	<atom:link href="http://www.markc.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.markc.net</link>
	<description></description>
	<pubDate>Mon, 08 Jun 2009 23:05:43 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Clear Fields, a Useful Firefox Plugin</title>
		<link>http://www.markc.net/2009/06/07/clear-fields-a-useful-firefox-plugin/</link>
		<comments>http://www.markc.net/2009/06/07/clear-fields-a-useful-firefox-plugin/#comments</comments>
		<pubDate>Sun, 07 Jun 2009 16:34:35 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
		
		<category><![CDATA[Firefox]]></category>

		<category><![CDATA[Browsers]]></category>

		<category><![CDATA[Fields]]></category>

		<category><![CDATA[Plugins]]></category>

		<category><![CDATA[Search]]></category>

		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://www.markc.net/?p=20</guid>
		<description><![CDATA[I use the search box in Firefox a fair bit and one thing that i&#8217;ve never understood is why there is not clear button (there&#8217;s one for the find box - at least there used to be). Fortunately we have a plugin for everything and here is one to do just that:
Clear Fields
It simply adds [...]]]></description>
			<content:encoded><![CDATA[<p><img class="size-full wp-image-22 alignleft" title="Clear Fields" src="http://www.markc.net/wordpress/wp-content/uploads/2009/06/clearfields.jpg" alt="Clear Fields" width="180" height="84" />I use the search box in Firefox a fair bit and one thing that i&#8217;ve never understood is why there is not clear button (there&#8217;s one for the find box - at least there used to be). Fortunately we have a plugin for everything and here is one to do just that:</p>
<p><a href="http://alex.alexander.googlepages.com/clearfields">Clear Fields</a></p>
<p>It simply adds buttons so its nice and customisable.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.markc.net/2009/06/07/clear-fields-a-useful-firefox-plugin/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Batch Renamer</title>
		<link>http://www.markc.net/2009/06/07/batch-renamer/</link>
		<comments>http://www.markc.net/2009/06/07/batch-renamer/#comments</comments>
		<pubDate>Sun, 07 Jun 2009 16:24:47 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
		
		<category><![CDATA[CMD/Batch]]></category>

		<category><![CDATA[Files]]></category>

		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.markc.net/?p=11</guid>
		<description><![CDATA[As promised in the Flexible Renamer article, here is my solution for renaming a series of files according to a text file. This could be useful for renaming tracks in an album from 01.mp3, 02.mp3 to 01 - Song 1.mp3 or for episodes in a TV series.
I used CMD programming which was quite a challenge [...]]]></description>
			<content:encoded><![CDATA[<p>As promised in the <a href="http://www.markc.net/2009/06/01/flexible-renamer/">Flexible Renamer</a> article, here is my solution for renaming a series of files according to a text file. This could be useful for renaming tracks in an album from 01.mp3, 02.mp3 to 01 - Song 1.mp3 or for episodes in a TV series.</p>
<p><span id="more-11"></span>I used CMD programming which was quite a challenge (its pretty limited but most problems can be solved with a lock of hackery), but requires no additional files:</p>
<pre>@ECHO OFF &amp; SETLOCAL enableextensions enabledelayedexpansion
:: ---------------------------------------------------------
:: Rename.cmd by Mark Challoner
:: Renames a set of files according to a text file (one name per line)
::
:: Pattern variables:
::   $#: Line number
::   $L: Line text (after only)
::   $N: Previous name (after only)
::   $X: Previous extension (after only)
::    *: Any number of unknown characters (before only)
::    ?: One unknown character (before only)
:: ---------------------------------------------------------
:: File to get names from (no quotes)
SET file=Filenames.txt
:: Before and after filename patterns.
SET before="*.tmp"
SET after="$# - $L ($N).$X"
:: --------------------------------------------------------
:: Do not edit below this following line
SET c1=1
IF NOT EXIST "%file%" (
  ECHO %file% not found. Script will now exit.
  PAUSE
  GOTO :EOF
)
FOR /F "usebackq tokens=* delims=" %%A IN ("%file%") DO (
  IF !c1! LSS 10 (SET number=0!c1!) ELSE (SET number=!c1!)
  SET text=%%A
  SET old=%before:$#=!number!%
  SET c2=1
  FOR /F "usebackq delims=" %%B IN (`dir /b !old!`) DO (
    IF !c1! == !c2! SET old="%%B"
    SET /A c2+=1
  )
  FOR /F %%B IN (!old!) DO (
    SET old_name=%%~nB
    SET old_ext=%%~xB
    SET old_ext=!old_ext:~1!
  )
  SET new=%after:$#=!number!%
  FOR /F "delims=" %%B IN ("!text!") DO SET new=!new:$L=%%B!
  FOR /F "delims=" %%B IN ("!old_name!") DO SET new=!new:$N=%%B!
  FOR /F "delims=" %%B IN ("!old_ext!") DO SET new=!new:$X=%%B!
  IF EXIST !old! (REN !old! !new!)
  SET /A c1 += 1
)</pre>
<p>Copy and paste into notepad, edit variables and save as Rename.cmd. Alternatively download from below. You will need a file to hold the new names (Filelist.txt here). Then doubleclick to run. Enjoy! <img src='http://www.markc.net/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a href="http://www.markc.net/wordpress/wp-content/uploads/2009/06/rename.cmd">Rename.cmd</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.markc.net/2009/06/07/batch-renamer/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Flexible Renamer</title>
		<link>http://www.markc.net/2009/06/01/flexible-renamer/</link>
		<comments>http://www.markc.net/2009/06/01/flexible-renamer/#comments</comments>
		<pubDate>Mon, 01 Jun 2009 19:45:54 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
		
		<category><![CDATA[File Management]]></category>

		<category><![CDATA[CMD/Batch]]></category>

		<category><![CDATA[Files]]></category>

		<category><![CDATA[Programming]]></category>

		<category><![CDATA[Regular Expressions]]></category>

		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://www.markc.net/?p=3</guid>
		<description><![CDATA[Now and again I find I have a set of files that needs to be renamed in some way. Often it&#8217;s capitalising each word, or stripping out certain characters (dots, square brackets etc.). This program makes it easy to do that and therefore has become indispensable:
Flexible Renamer
I won&#8217;t do a full review here as Naru&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>Now and again I find I have a set of files that needs to be renamed in some way. Often it&#8217;s capitalising each word, or stripping out certain characters (dots, square brackets etc.). This program makes it easy to do that and therefore has become indispensable:</p>
<p><a title="Flexible Renamer" href="http://hp.vector.co.jp/authors/VA014830/english/FlexRena/">Flexible Renamer</a></p>
<p><span id="more-3"></span>I won&#8217;t do a full review here as Naru&#8217;s site has screenshots and an overview, but two features that are really useful are:</p>
<ul>
<li>Regular expressions</li>
<li>Recursing into sub folders</li>
</ul>
<p>The one thing it can&#8217;t do is rename files based on some arbitrary list  of filenames, a text document for example. That however could easily be done in a batch file.  More on that later.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.markc.net/2009/06/01/flexible-renamer/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
