<?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>Solutions Log &#187; Windows Batch</title>
	<atom:link href="http://solutions.unixsherpa.com/category/programming/language/winbatch/feed/" rel="self" type="application/rss+xml" />
	<link>http://solutions.unixsherpa.com</link>
	<description>by Dan Reiland</description>
	<lastBuildDate>Fri, 16 Apr 2010 20:28:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Mirror a Directory Structure Using the Command Line</title>
		<link>http://solutions.unixsherpa.com/2009/08/25/mirror-a-directory-structure-using-the-command-line/</link>
		<comments>http://solutions.unixsherpa.com/2009/08/25/mirror-a-directory-structure-using-the-command-line/#comments</comments>
		<pubDate>Tue, 25 Aug 2009 18:30:51 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[Windows Batch]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[cmd]]></category>
		<category><![CDATA[command prompt]]></category>

		<guid isPermaLink="false">http://solutions.unixsherpa.com/?p=183</guid>
		<description><![CDATA[Issue: You need to mirror the directory structure (but not contents) for a tree. Resolution: Execute the following command from the root of your source directory. Adjust the destination variable to suit your tastes: %i will match the first token, %j the second, %k the third, and %l will match everything else. for /F &#34;tokens=1,2,3* [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Issue:</strong><br />
You need to mirror the directory structure (but not contents) for a tree.</p>
<p><strong>Resolution:</strong><br />
Execute the following command from the root of your source directory. Adjust the destination variable to suit your tastes: %i will match the first token, %j the second, %k the third, and %l will match everything else.</p>
<div class="codecolorer-container dos twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><div class="dos codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><a href="http://www.ss64.com/nt/for.html"><span style="color: #00b100; font-weight: bold;">for</span></a> /F &quot;tokens=<span style="color: #cc66cc;">1</span>,<span style="color: #cc66cc;">2</span>,<span style="color: #cc66cc;">3</span>* delims=\&quot; <span style="color: #33cc33;">%</span><span style="color: #448888;">i</span> <a href="http://www.ss64.com/nt/in.html"><span style="color: #00b100; font-weight: bold;">in</span></a> <span style="color: #66cc66;">&#40;</span>'<a href="http://www.ss64.com/nt/dir.html"><span style="color: #b1b100; font-weight: bold;">dir</span></a> /Ad /B /N /S'<span style="color: #66cc66;">&#41;</span> <a href="http://www.ss64.com/nt/do.html"><span style="color: #00b100; font-weight: bold;">do</span></a> <a href="http://www.ss64.com/nt/mkdir.html"><span style="color: #b1b100; font-weight: bold;">mkdir</span></a> t:\dest\<span style="color: #33cc33;">%</span><span style="color: #448888;">l</span></div></div>
<p>Reference: <a href="http://www.dostips.com/DtTipsStringManipulation.php">http://www.dostips.com/DtTipsStringManipulation.php</a></p>
]]></content:encoded>
			<wfw:commentRss>http://solutions.unixsherpa.com/2009/08/25/mirror-a-directory-structure-using-the-command-line/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Convert text file to UTF-8 encoding from the shell</title>
		<link>http://solutions.unixsherpa.com/2009/06/24/convert-text-file-to-utf-8-encoding-from-the-shell/</link>
		<comments>http://solutions.unixsherpa.com/2009/06/24/convert-text-file-to-utf-8-encoding-from-the-shell/#comments</comments>
		<pubDate>Wed, 24 Jun 2009 15:38:45 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Apple OSX]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Windows Batch]]></category>

		<guid isPermaLink="false">http://solutions.unixsherpa.com/?p=105</guid>
		<description><![CDATA[1for f in *.txt; do iconv -f mac -t utf-8 &#34;$f&#34; &#62;&#34;$f.utf8&#34;; done Note: -f Input file encoding type -t Output file encoding type Reference: http://manual.macromates.com/en/saving_files.html]]></description>
			<content:encoded><![CDATA[<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">for f in *.txt; do iconv -f mac -t utf-8 &quot;$f&quot; &gt;&quot;$f.utf8&quot;; done</div></td></tr></tbody></table></div>
<p>Note:<br />
-f Input file encoding type<br />
-t Output file encoding type</p>
<p>Reference: <a href="http://manual.macromates.com/en/saving_files.html">http://manual.macromates.com/en/saving_files.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://solutions.unixsherpa.com/2009/06/24/convert-text-file-to-utf-8-encoding-from-the-shell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
