<?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>Johan Känngård &#187; batch</title>
	<atom:link href="http://johankanngard.net/tag/batch/feed/" rel="self" type="application/rss+xml" />
	<link>http://johankanngard.net</link>
	<description>Useful tips for developers</description>
	<lastBuildDate>Thu, 19 May 2011 18:40:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Log File Roller For Microsoft Windows</title>
		<link>http://johankanngard.net/2008/12/11/log-file-roller-for-microsoft-windows/</link>
		<comments>http://johankanngard.net/2008/12/11/log-file-roller-for-microsoft-windows/#comments</comments>
		<pubDate>Thu, 11 Dec 2008 13:50:43 +0000</pubDate>
		<dc:creator>Johan Känngård</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[batch]]></category>

		<guid isPermaLink="false">http://johankanngard.net/?p=330</guid>
		<description><![CDATA[A simple log file roller, that rolls/rotates a file from FILENAME.0, to FILENAME.1, onwards to FILENAME.9. If FILENAME.9 exists, it is deleted. Can be used to keep log files small and managable, and delete old ones. The code is not pretty, I could not get it work with loops. If anyone has a better way [...]]]></description>
			<content:encoded><![CDATA[<p>
A simple log file roller, that rolls/rotates a file from FILENAME.0, to FILENAME.1, onwards to FILENAME.9. If FILENAME.9 exists, it is deleted. Can be used to keep log files small and managable, and delete old ones. The code is not pretty, I could not get it work with loops. If anyone has a better way of doing this, please let me know! :-)
</p>
<p>Usage:<br />
<code><br />
rollLog LOGDIRECTORY LOGFILENAME<br />
</code><br />
For instance, if you have a log at c:\log\at.log, you can run:<br />
<code><br />
rollLog c:\logs at.log<br />
</code></p>
<p>
Afterwards, you have one file named c:\logs\at.log.0. The next time you run it (and there has been something written to at.log) you get two files, at.log.0 and at.log.1.
</p>
<p>
The <a href='http://johankanngard.net/wp-content/uploads/2008/12/rolllog.cmd'>rollLog.cmd file is here</a>!</p>
]]></content:encoded>
			<wfw:commentRss>http://johankanngard.net/2008/12/11/log-file-roller-for-microsoft-windows/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

