<?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; cmd</title> <atom:link href="http://solutions.unixsherpa.com/tag/cmd/feed/" rel="self" type="application/rss+xml" /><link>http://solutions.unixsherpa.com</link> <description>by Dan Reiland</description> <lastBuildDate>Tue, 05 Apr 2011 16:42:14 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</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[sysadmin]]></category> <category><![CDATA[Windows]]></category> <category><![CDATA[Windows Batch]]></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=1,2,3* 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: #33cc33;">(</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: #33cc33;">)</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> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using memcached
Page Caching using memcached
Database Caching 1/12 queries in 0.002 seconds using memcached
Object Caching 378/390 objects using memcached
Content Delivery Network via Amazon Web Services: S3: unixsherpa-solutions.s3.amazonaws.com

Served from: solutions.unixsherpa.com @ 2012-02-06 14:34:09 -->
