<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Chris&#039; Technology Blog</title>
	<atom:link href="http://techforthebrain.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://techforthebrain.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Sat, 17 Oct 2009 20:07:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='techforthebrain.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Chris&#039; Technology Blog</title>
		<link>http://techforthebrain.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://techforthebrain.wordpress.com/osd.xml" title="Chris&#039; Technology Blog" />
	<atom:link rel='hub' href='http://techforthebrain.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Back to Basics</title>
		<link>http://techforthebrain.wordpress.com/2009/10/17/back-to-basics/</link>
		<comments>http://techforthebrain.wordpress.com/2009/10/17/back-to-basics/#comments</comments>
		<pubDate>Sat, 17 Oct 2009 20:07:16 +0000</pubDate>
		<dc:creator>cwahrle</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://techforthebrain.wordpress.com/?p=3</guid>
		<description><![CDATA[I think that some of the time it is easy to forget about the basics.  The basics of where scripting, automating, or coding began.  That is why, in this multi part series of blogging, I will take a look at the basics of tools available from the Command Line, or batch files. In this portion [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techforthebrain.wordpress.com&amp;blog=9832766&amp;post=3&amp;subd=techforthebrain&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I think that some of the time it is easy to forget about the basics.  The basics of where scripting, automating, or coding began.  That is why, in this multi part series of blogging, I will take a look at the basics of tools available from the Command Line, or batch files.</p>
<p>In this portion of my series, we will look at DIR, which is short for Directory.</p>
<p>Below is a summary of the options available from DIR:</p>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">Displays a list of files and subdirectories in a directory.</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">DIR [drive:][path][filename] [/A[[:]attributes]] [/B] [/C] [/D] [/L] [/N]</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">[/O[[:]sortorder]] [/P] [/Q] [/R] [/S] [/T[[:]timefield]] [/W] [/X] [/4]</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">[drive:][path][filename]</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">Specifies drive, directory, and/or files to list.</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">/A          Displays files with specified attributes.</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">attributes   D  Directories                R  Read-only files</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">H  Hidden files               A  Files ready for archiving</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">S  System files               I  Not content indexed files</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">L  Reparse Points             &#8211;  Prefix meaning not</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">/B          Uses bare format (no heading information or summary).</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">/C          Display the thousand separator in file sizes.  This is the</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">default.  Use /-C to disable display of separator.</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">/D          Same as wide but files are list sorted by column.</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">/L          Uses lowercase.</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">/N          New long list format where filenames are on the far right.</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">/O          List by files in sorted order.</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">sortorder    N  By name (alphabetic)       S  By size (smallest first)</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">E  By extension (alphabetic)  D  By date/time (oldest first)</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">G  Group directories first    -  Prefix to reverse order</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">/P          Pauses after each screenful of information.</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">/Q          Display the owner of the file.</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">/R          Display alternate data streams of the file.</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">/S          Displays files in specified directory and all subdirectories.</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">/T          Controls which time field displayed or used for sorting</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">timefield   C  Creation</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">A  Last Access</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">W  Last Written</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">/W          Uses wide list format.</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">/X          This displays the short names generated for non-8dot3 file</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">names.  The format is that of /N with the short name inserted</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">before the long name. If no short name is present, blanks are</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">displayed in its place.</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">/4          Displays four-digit years</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">Switches may be preset in the DIRCMD environment variable.  Override</div>
<div id="_mcePaste" style="position:absolute;left:-10000px;top:0;width:1px;height:1px;">preset switches by prefixing any switch with &#8211; (hyphen)&#8211;for example, /-W.</div>
<p>Displays a list of files and subdirectories in a directory.</p>
<p>DIR [drive:][path][filename] [/A[[:]attributes]] [/B] [/C] [/D] [/L] [/N]</p>
<p>[/O[[:]sortorder]] [/P] [/Q] [/R] [/S] [/T[[:]timefield]] [/W] [/X] [/4]</p>
<p>[drive:][path][filename]</p>
<p>Specifies drive, directory, and/or files to list.</p>
<p>/A          Displays files with specified attributes.</p>
<p>attributes   D  Directories                R  Read-only files</p>
<p>H  Hidden files               A  Files ready for archiving</p>
<p>S  System files               I  Not content indexed files</p>
<p>L  Reparse Points             &#8211;  Prefix meaning not</p>
<p>/B          Uses bare format (no heading information or summary).</p>
<p>/C          Display the thousand separator in file sizes.  This is the</p>
<p>default.  Use /-C to disable display of separator.</p>
<p>/D          Same as wide but files are list sorted by column.</p>
<p>/L          Uses lowercase.</p>
<p>/N          New long list format where filenames are on the far right.</p>
<p>/O          List by files in sorted order.</p>
<p>sortorder    N  By name (alphabetic)       S  By size (smallest first)</p>
<p>E  By extension (alphabetic)  D  By date/time (oldest first)</p>
<p>G  Group directories first    -  Prefix to reverse order</p>
<p>/P          Pauses after each screenful of information.</p>
<p>/Q          Display the owner of the file.</p>
<p>/R          Display alternate data streams of the file.</p>
<p>/S          Displays files in specified directory and all subdirectories.</p>
<p>/T          Controls which time field displayed or used for sorting</p>
<p>timefield   C  Creation</p>
<p>A  Last Access</p>
<p>W  Last Written</p>
<p>/W          Uses wide list format.</p>
<p>/X          This displays the short names generated for non-8dot3 file</p>
<p>names.  The format is that of /N with the short name inserted</p>
<p>before the long name. If no short name is present, blanks are</p>
<p>displayed in its place.</p>
<p>/4          Displays four-digit years</p>
<p>Switches may be preset in the DIRCMD environment variable.  Override</p>
<p>preset switches by prefixing any switch with &#8211; (hyphen)&#8211;for example, /-W.</p>
<p>Some of the simple commands that I enjoy are outlined below:</p>
<p>Search a specific location for a filename (you can also include wild cards):</p>
<p>DIR chris.txt /S</p>
<p>Generate a list of directories within in directory (can also be used with UNC paths):</p>
<p><span style="font-size:10pt;font-family:&quot;color:black;">dir /b /ON </span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/techforthebrain.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/techforthebrain.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/techforthebrain.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/techforthebrain.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/techforthebrain.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/techforthebrain.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/techforthebrain.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/techforthebrain.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/techforthebrain.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/techforthebrain.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/techforthebrain.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/techforthebrain.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/techforthebrain.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/techforthebrain.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techforthebrain.wordpress.com&amp;blog=9832766&amp;post=3&amp;subd=techforthebrain&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://techforthebrain.wordpress.com/2009/10/17/back-to-basics/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f2986a14644d1cb4ea522e9dfaca6570?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">cwahrle</media:title>
		</media:content>
	</item>
	</channel>
</rss>
