<?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>Vitriol and Routing Tables &#187; Windows</title>
	<atom:link href="http://www.raptorized.com/tags/english/work/windows/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.raptorized.com</link>
	<description>Tales from the OSI layer 3</description>
	<lastBuildDate>Wed, 08 Sep 2010 02:34:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Access administrative shares on Server 2008/Vista</title>
		<link>http://www.raptorized.com/2008/08/19/access-administrative-shares-on-server-2008vista/</link>
		<comments>http://www.raptorized.com/2008/08/19/access-administrative-shares-on-server-2008vista/#comments</comments>
		<pubDate>Tue, 19 Aug 2008 21:27:33 +0000</pubDate>
		<dc:creator>mr_daemon</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[Tutorials/How-To]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Windows Server 2008]]></category>

		<guid isPermaLink="false">http://www.raptorized.com/?p=182</guid>
		<description><![CDATA[Quick windows tip again, if you find yourself unable to access the administrative shares (\\machine\c$, tasks, etc) on a Windows Server 2008 or Vista computer with UAC enabled, using the credentials of a local administrator &#8212; don&#8217;t panic. This is actually intended. Turns out local administrators cannot elevate their privileges over the network, with UAC [...]]]></description>
			<content:encoded><![CDATA[<p>Quick windows tip again, if you find yourself unable to access the administrative shares (\\machine\c$, tasks, etc) on a Windows Server 2008 or Vista computer with UAC enabled, using the credentials of a local administrator &#8212; don&#8217;t panic. This is actually intended.</p>

<p>Turns out local administrators cannot elevate their privileges over the network, with UAC enabled.</p>

<p><strong>Note that this doesn&#8217;t affect users in the Domain Admins group!</strong></p>

<p>Now, you could do the dumb &#8220;neowin poweruser&#8221; thing and turn UAC off, or you could change this particular behavior in the registry. Navigate to:</p>

<p><code>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System</code></p>

<p>And add a new DWORD named <strong>LocalAccountTokenFilterPolicy</strong> with a value of <strong>1</strong>, and then reboot. It all should work.</p>

<p>Again, users with Domain Admin privileges are unaffected.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.raptorized.com/2008/08/19/access-administrative-shares-on-server-2008vista/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Xapian Python Bindings (Win32) 1.0.3 Released</title>
		<link>http://www.raptorized.com/2007/10/03/xapian-python-bindings-win32-103-released/</link>
		<comments>http://www.raptorized.com/2007/10/03/xapian-python-bindings-win32-103-released/#comments</comments>
		<pubDate>Wed, 03 Oct 2007 19:28:10 +0000</pubDate>
		<dc:creator>mr_daemon</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[Free Software/Open Source]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Updates]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[packaging]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[xapian]]></category>

		<guid isPermaLink="false">http://www.raptorized.com/2007/10/03/xapian-python-bindings-win32-103-released/</guid>
		<description><![CDATA[I have compiled version 1.0.3 of Xapian for Windows, and I have built and packaged the Python Bindings for your convenience. You can find the new version here. This time they are available for both Python 2.4 and 2.5. Enjoy.]]></description>
			<content:encoded><![CDATA[<p>I have compiled version 1.0.3 of Xapian for Windows, and I have built and packaged the Python Bindings for your convenience.</p>

<p>You can find the new version <a href="http://www.raptorized.com/xapian-python-win32/">here</a>.</p>

<p>This time they are available for both Python 2.4 and 2.5. Enjoy.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.raptorized.com/2007/10/03/xapian-python-bindings-win32-103-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Xapian Python Bindings (Win32)</title>
		<link>http://www.raptorized.com/2007/08/21/xapian-python-bindings-win32/</link>
		<comments>http://www.raptorized.com/2007/08/21/xapian-python-bindings-win32/#comments</comments>
		<pubDate>Tue, 21 Aug 2007 19:13:32 +0000</pubDate>
		<dc:creator>mr_daemon</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Updates]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[packaging]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[xapian]]></category>

		<guid isPermaLink="false">http://www.raptorized.com/?p=137</guid>
		<description><![CDATA[I have built the Xapian Python Bindings on Windows. They comes packaged with an easy, standard (distutils) installer. This may help with some of the headaches associated with running Xapian on Python and Windows. Getting the whole thing to compile was not exactly a walk in the park, so I assumed people would be glad [...]]]></description>
			<content:encoded><![CDATA[<p>I have built the Xapian Python Bindings on Windows. They comes packaged with an easy, standard (distutils) installer. This may help with some of the headaches associated with running Xapian on Python and Windows.</p>

<p>Getting the whole thing to compile was not exactly a walk in the park, so I assumed people would be glad to have an easy Binary installer handy. I plan to use this library for a few internal projects, and I want the said project to be as multi platform as possible.</p>

<p>So far, they are only packaged for Python 2.5 but I will try to package them for 2.4 later on today or during this week.</p>

<p>See the details <a href="http://www.raptorized.com/?page_id=136">here</a>.</p>

<p>They were built on Windows Server 2003 with MSVC from Visual C++ 2005 Express.</p>

<p>I hope this helps.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.raptorized.com/2007/08/21/xapian-python-bindings-win32/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Crappy parser is craaaappy</title>
		<link>http://www.raptorized.com/2006/12/01/crappy-parser-is-craaaappy/</link>
		<comments>http://www.raptorized.com/2006/12/01/crappy-parser-is-craaaappy/#comments</comments>
		<pubDate>Fri, 01 Dec 2006 14:59:39 +0000</pubDate>
		<dc:creator>mr_daemon</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Randomness]]></category>
		<category><![CDATA[Vitriolic Diatribes]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.raptorized.com/?p=96</guid>
		<description><![CDATA[Just when I was starting to actually enjoy (read: thinking &#8220;hey, it&#8217;s not so bad!&#8221;) Windows scripting after discovering documentation for the 32 bits command interpreter in Windows NT, I realize I have been spoiled by Unix shells and expect some things to work, and then frown in disgust when they don&#8217;t. for /F "usebackq [...]]]></description>
			<content:encoded><![CDATA[<p>Just when I was starting to actually enjoy (read: thinking &#8220;hey, it&#8217;s not so bad!&#8221;) Windows scripting after discovering documentation for the 32 bits command interpreter in Windows NT, I realize I have been spoiled by Unix shells and expect some things to work, and then frown in disgust when they don&#8217;t. </p>

<pre>
<code>
for /F "usebackq tokens=2,*" %i in (`net use | find "..."`)... 
| was unexpected
</code>
</pre>

<p>I really wanted to like writing cmd scripts. But the parser is way too obnoxious when parsing brackets. For instance, you can&#8217;t set an environement variable in one branch of a conditional statement.</p>

<pre>
<code>
if "text" EQU "othertext" ( 
    set VAR=value 
) else ( 
    echo Not Working. 
)
</code>
</pre>

<p>This will fail silently or with unexpected results. Can&#8217;t wait until <a href="http://www.microsoft.com/windowsserver2003/technologies/management/powershell/default.mspx">PowerShell</a> becomes mainstream enough for me to use.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.raptorized.com/2006/12/01/crappy-parser-is-craaaappy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows Tip: Remote Console with remote.exe</title>
		<link>http://www.raptorized.com/2006/11/29/windows-tip-remote-console-with-remoteexe/</link>
		<comments>http://www.raptorized.com/2006/11/29/windows-tip-remote-console-with-remoteexe/#comments</comments>
		<pubDate>Wed, 29 Nov 2006 15:23:30 +0000</pubDate>
		<dc:creator>mr_daemon</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[Tutorials/How-To]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.raptorized.com/?p=95</guid>
		<description><![CDATA[EDIT &#8211; 2008-03-03: Actually, screw this shady use of the remote debugger. Use psexec like a man instead, and enjoy the power of WMI. This is nifty. Not something to scream about while tearing your clothes off in a moment of raw ardency, but still, I find it relatively useful. You perhaps already know how [...]]]></description>
			<content:encoded><![CDATA[<p><strong>EDIT &#8211; 2008-03-03:</strong> <em>Actually, screw this shady use of the remote debugger. Use <a href="http://technet.microsoft.com/en-us/sysinternals/bb897553.aspx">psexec like a man instead</a>, and enjoy the power of WMI.</em></p>

<p>This is nifty. Not something to scream about while tearing your clothes off in a moment of raw ardency, but still, I find it relatively useful.</p>

<p>You perhaps already know how <a href="http://www.microsoft.com/whdc/devtools/debugging/default.mspx">Windows Debugging Tools</a> such as <strong>WinDbg</strong> can output to a serial or network console, but I found out this concept can be extended to basically any console application that doesn&#8217;t really mess around with the terminal. See it as a mix between <strong>netcat</strong> and <strong>screen</strong>.</p>

<p>You just need &#8220;<strong>remote.exe</strong>&#8221; that comes with the Windows Debugging Tools. I personally use it to launch <a href="http://www.adobe.com/products/jrun/">Macromedia JRun4</a> in a console on a development server at one of my client sites to debug their web application remotely. That way I can see the log in my local console instead of toggling between the server and Terminal Services. Read on for an overview of how it works.
<span id="more-95"></span></p>

<p><strong>Syntax</strong></p>

<p>It&#8217;s fairly easy to grasp, if you keep in mind that parameters <strong>must</strong> be passed in a specific order.</p>

<p>A real-life, live example would be the following:</p>

<p><code>remote.exe /S "jrun.exe start devserver" jrun-console /U admin /U gauthiera</code></p>

<p><strong>/S</strong> specifies the command to run, followed by the session name.
In this particular case, it will run &#8220;jrun.exe start devserver&#8221; and name the session &#8220;jrun-console&#8221;.</p>

<p><strong>/U</strong> will specify which users are able to access the session. I heard it doesn&#8217;t work unless you&#8217;re part of a Domain. I have yet to verify this. You can repeat the parameter as many times as necessary. Ensure, however, that the user running <em>remote.exe</em> is in there. Hence, in my example &#8220;admin&#8221; and &#8220;gauthiera&#8221; being the user who ran the command on the server and the client that is allowed to connect, respectively.</p>

<p><strong>Client</strong></p>

<p>On the client side, issuing</p>

<p><code>remote.exe /C devserver jrun-console</code></p>

<p>will connect to the listening server. I just issued the server name, followed by the session name.</p>

<p>You can also make sessions visibles or invisible, query them, and all sorts of other things. More details can be found in the application help. Just issue <strong>remote.exe /?</strong>, as usual.</p>

<p>It just comes in handy, sometimes.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.raptorized.com/2006/11/29/windows-tip-remote-console-with-remoteexe/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quick Windows Tip: Active Directory MMC as Admin</title>
		<link>http://www.raptorized.com/2006/11/24/quick-windows-tip-active-directory-mmc-as-admin/</link>
		<comments>http://www.raptorized.com/2006/11/24/quick-windows-tip-active-directory-mmc-as-admin/#comments</comments>
		<pubDate>Fri, 24 Nov 2006 14:36:02 +0000</pubDate>
		<dc:creator>mr_daemon</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[Tutorials/How-To]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.raptorized.com/?p=94</guid>
		<description><![CDATA[That title is way longer than it should be. Anyways, I just like to administer Active Directory Users and Computers from my workstation, on which I am logged on as a plain user. To run the Active Directory Users and Computers with Administrator rights, you can use some runas.exe magic. Just create a shortcut to [...]]]></description>
			<content:encoded><![CDATA[<p>That title is way longer than it should be. Anyways, I just like to administer Active Directory Users and Computers from my workstation, on which I am logged on as a plain user.</p>

<p>To run the Active Directory Users and Computers with Administrator rights, you can use some <strong>runas.exe</strong> magic. Just create a shortcut to the following target:</p>

<p><code>
C:\WINDOWS\system32\runas.exe /USER:DOMAIN\adminuser "mmc dsa.msc"
</code></p>

<p>Of course, just change <em>DOMAIN\adminuser</em> to whatever applies.</p>

<p>It works fine for my purposes. The trick is just knowing the name of that particular mmc snap-in.
That&#8217;s pretty basic knowledge, but I&#8217;ve been asked three times this week about it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.raptorized.com/2006/11/24/quick-windows-tip-active-directory-mmc-as-admin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PowerShell is out</title>
		<link>http://www.raptorized.com/2006/11/16/powershell-is-out/</link>
		<comments>http://www.raptorized.com/2006/11/16/powershell-is-out/#comments</comments>
		<pubDate>Thu, 16 Nov 2006 13:22:40 +0000</pubDate>
		<dc:creator>mr_daemon</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.raptorized.com/?p=93</guid>
		<description><![CDATA[Microsoft PowerShell was just released. PowerShell is actually the only new technology coming from Microsoft that has gotten me excited. I have played around with the Betas and Release Candidates at work, now I can finally USE it. It will take some time before it reaches the production environnement, but this will make my life [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.microsoft.com/windowsserver2003/technologies/management/powershell/default.mspx">Microsoft PowerShell</a> was just released.</p>

<p>PowerShell is actually the only new technology coming from Microsoft that has gotten me excited. I have played around with the Betas and Release Candidates at work, now I can finally USE it. It will take some time before it reaches the production environnement, but this will make my life substantially more pleasant when working with windows.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.raptorized.com/2006/11/16/powershell-is-out/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apple Hardware on microsoft.com?</title>
		<link>http://www.raptorized.com/2005/12/06/apple-hardware-on-microsoftcom/</link>
		<comments>http://www.raptorized.com/2005/12/06/apple-hardware-on-microsoftcom/#comments</comments>
		<pubDate>Wed, 07 Dec 2005 03:14:22 +0000</pubDate>
		<dc:creator>mr_daemon</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Randomness]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.raptorized.com/?p=53</guid>
		<description><![CDATA[I was browsing microsoft.com lately, and saw this. The stock photo used in there appears to be an Apple iBook. Mild amusement on my part. Update: Here is the link to a screenshot of the full page.]]></description>
			<content:encoded><![CDATA[<p>I was browsing microsoft.com lately, and saw this.</p>

<p><img alt="Humorous." src="http://www.raptorized.com/gallery/d/190-2/w2k3r2ad.jpg" /></p>

<p>The stock photo used in there appears to be an <a href="http://www.apple.ca/ibook/">Apple iBook</a>.</p>

<p>Mild amusement on my part.</p>

<p><strong>Update</strong>: Here is the <a href="http://www.raptorized.com/gallery/v/screenies/w2k3r2adfull.jpg.html">link to a screenshot of the full page.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.raptorized.com/2005/12/06/apple-hardware-on-microsoftcom/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Subversion: On fixing &#8220;can&#8217;t recode string&#8221;&#8230;</title>
		<link>http://www.raptorized.com/2005/11/16/subversion-on-fixing-cant-recode-string/</link>
		<comments>http://www.raptorized.com/2005/11/16/subversion-on-fixing-cant-recode-string/#comments</comments>
		<pubDate>Wed, 16 Nov 2005 18:43:02 +0000</pubDate>
		<dc:creator>mr_daemon</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Subversion]]></category>
		<category><![CDATA[Tutorials/How-To]]></category>
		<category><![CDATA[Unix/Linux]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.raptorized.com/?p=51</guid>
		<description><![CDATA[Well, I recently set up a subversion system where I work, on Windows. Clients are using Tortoise SVN, and everything works beautifully. However this morning, I checked out the trunk on my Mac OS X powered Powerbook, and the lawnmower hit a brick the split second svn tried to checkout a folder with accented characters [...]]]></description>
			<content:encoded><![CDATA[<p>Well, I recently set up a subversion system where I work, on Windows. Clients are using Tortoise SVN, and everything works beautifully. However this morning, I checked out the trunk on my Mac OS X powered Powerbook, and the lawnmower hit a brick the split second svn tried to checkout a folder with accented characters (In french, for instance. Could have been german umlauts).</p>

<p>svn: Can&#8217;t recode string</p>

<p>Well, this was a matter of changing the encoding used by my system locale to match the one of the repository, which was done by editing the file <em>.profile</em> in my home directory (I use bash as a default shell, which is the default on OS X 10.3 and above, as opposed to csh) and added the following:</p>

<pre>
<code>
export LC_CTYPE="en_US.UTF-8"
export LANG="en_US.UTF-8"
</code>
</pre>

<p>This basically had the effect of setting up the locale to UTF8, which swallowed the file without problems. I just though I&#8217;d post it there because it was useful &#8212; I didn&#8217;t really google around to check out if that solution was already out there, but I will mirror it on <a href="http://www.underwares.org/zcgi/contents">underwares.org</a> anyways.</p>

<p>Hope this helps someone, somehow. <img src='http://www.raptorized.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.raptorized.com/2005/11/16/subversion-on-fixing-cant-recode-string/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bettering the Windows Command Prompt Part 1</title>
		<link>http://www.raptorized.com/2005/09/17/rediscovering-the-windows-command-prompt/</link>
		<comments>http://www.raptorized.com/2005/09/17/rediscovering-the-windows-command-prompt/#comments</comments>
		<pubDate>Sat, 17 Sep 2005 18:43:04 +0000</pubDate>
		<dc:creator>mr_daemon</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[English]]></category>
		<category><![CDATA[Tutorials/How-To]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.raptorized.com/?p=45</guid>
		<description><![CDATA[A nice tutorial on how not to desire a quick, painless death while using cmd.exe. Some tips and tricks, configuration options and neat keys. In the next installment, we'll see alternatives such as running a unix shell on windows and Monad (MSH).]]></description>
			<content:encoded><![CDATA[<p>Well, the current job I have landed at requires me to work with Windows alot. Perhaps a bit more than I&#8217;d like, but still, I get to <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=2ac59b30-5a44-4782-b0b7-79fe2efd1280&amp;DisplayLang=en">appreciate some things in windows-land</a> and also <a href="?p=37">despise alot of small things that make my daily life hell</a>.</p>

<p>But apart from that, I stick to my true Unix roots and try to do as much as possible with the command prompt &#8212; not out of pride, or some other political reasons, but rather because I like command prompts. They indeed make me all mushy inside and moist down the pants for a very sadistic and wrong reason. I just find that <a href="index.php?p=34">I am more efficient with them</a>.</p>

<p>So, I stumbled across a few things that made my daily journey into text input land alot more pleasant, and I will share them with you.
<span id="more-45"></span></p>

<h2>Tweak that cmd.exe</h2>

<p>As much as it reminds me of my old DOS days, and as much as I totally loathed the fucker, there are a few things in there that will make this shell a wee bit more potable.</p>

<p>Fire up a command prompt by going to start->run->cmd.exe, and then click on the top left icon. Contextual menu a&#8217;ight, if you&#8217;re an old fart from windows 3.x you may shed a nostalgy tear &#8212; but only one, please. Then, select &#8220;Defaults&#8221;. Many people don&#8217;t even know that cmd.exe <em>is</em> configurable.</p>

<h3>Settings</h3>

<ul>
<li><strong>Increase The Buffer Size to &#8220;500&#8243;.</strong> It is usually set to 50 which is everything but useful.</li>
<li><strong>Check Discard Old Duplicates</strong></li>
<li><strong>Check QuickEdit Mode, Insert Mode and AutoComplete.</strong></li>
</ul>

<blockquote>
  <p><strong>QuickEdit mode:</strong> This will allow you to select text with the mouse, hit enter and then paste it away. 
     A must if you miss the copy-on-select- behaviour of unix shells.<br />
     <strong>Insert Mode:</strong> This should be on. If it isn&#8217;t you must <em>love</em> overtyping stuff past the cursor.<br />
     <strong>AutoComplete</strong>: More on this later. You know you want it, tab-completion right off the bat.<br /></p>
</blockquote>

<h3>Screen Real Estate</h3>

<p>I&#8217;m sure you&#8217;d like to have some more real-estate when piping these commands.</p>

<ul>
<li><strong>Switch the fond to Lucida Console.</strong> It is a bit more tiny.</li>
<li><strong>Set screen buffer height to 999</strong></li>
<li><strong>Set Window Height to something higher, I suggest 40 or 50, tweak to your liking.</strong></li>
<li><em>Change the colors</em>. Take note that you <em>can</em> change the colors of the shell. I have a neat gray-ish setup I find easy on eyes.</li>
</ul>

<h2> Tips and Tricks </h2>

<p>Now, let&#8217;s explore what we can do with cmd.exe.</p>

<h3> Tab Completion</h3>

<p>Ah yes, a true feature the modern unix veteran cannot live without. While you cannot work out multiple regex into dir, you can actually use wildcards in tab completion.</p>

<p>For those who have no clue how tab completion works at all, it involves hitting tab to autocomplete the filename or command you&#8217;re trying to type from a list of possible choices.</p>

<p>So here&#8217;s an example:</p>

<pre>
<code>

C:\temp\exmp&gt;dir
 Volume in drive C has no label.
 Volume Serial Number is 383C-9102

 Directory of C:\temp\exmp

 2005-09-19  12:52    &lt;dir&gt; .
 2005-09-19  12:52    &lt;dir&gt; ..
 2005-09-19  12:51    5 ExcruciatIngly_hard_to_tyPe_FileNa-me.txt
                1 File(s)              5 bytes
                2 Dir(s)  18 110 910 464 bytes free

C:\temp\exmp&gt;

</code>
</pre>

<p>As you can see, There&#8217;s a long and annoying filename. While windows isn&#8217;t as strict as most unices (in the sense that it is not case sensitive) it is still time consuming to type all this out.</p>

<p>So instead of typing the whole filename, I can just issue&#8230;</p>

<pre><code> C:\temp\exmp&gt;del Ex
</code></pre>

<p>And press the tab key. The command prompt will autocomplete for me.</p>

<pre><code> C:\temp\exmp&gt;del ExcruciatIngly_hard_to_tyPe_FileNa-me.txt
</code></pre>

<p>In the case of an ambiguous complete, (ex. you have two files both starting by the same letters) you can hit tab multiple times and cmd.exe will rotate possible choices for you. The engine handling this seems to be pretty dumb at times though, and is not very reliable. But it works.</p>

<p>Now where it gets a bit more powerful is if you use wildcards. I have a couple of files in a directory here. (Do not worry about the &#8220;ls&#8221; part, I have unix utilities installed. More on this in Part II of this article <img src='http://www.raptorized.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>

<pre><code> H:\Backup&gt;ls
 serveur-pc100.bkf  serveur-pc102.bkf  station-pc101.bkf
 serveur-pc101.bkf  station-pc100.bkf  station-pc102.bkf
</code></pre>

<p>Now, suppose I know the backup file i&#8217;m trying to copy is related to pc100, but I am not sure which and how it is named. I can issue this:</p>

<pre><code> H:\Backup&gt;copy *-pc100*
</code></pre>

<p>And then tab it out to have it autocomplete to to this:</p>

<pre><code> H:\Backup&gt;copy serveur-pc100.bkf
</code></pre>

<p>If it is not what I wanted, I can press tab again to have it become:</p>

<pre><code> H:\Backup&gt;copy station-pc100.bkf
</code></pre>

<p>Cool huh? It will only rotate between choices that match the poor man&#8217;s regex you just entered. I use this alot more than I should.</p>

<h3> History</h3>

<p>As you probably already know, you can get to the last few commands you typed by pressing the &#8220;up&#8221; key. Well, it turns out you can also view and select stuff from your history using the <code>F7</code> key, which will bring the following dialog up</p>

<p><img src="http://www.raptorized.com/gallery/d/187-2/dos_f7.jpg" alt="Screenshot displaying the history menu" /></p>

<p>Neat huh?</p>

<h3> push and pop, baby</h3>

<p>They do have unix equivalent, and they are so underused&#8230;</p>

<p>The command <code>pushd</code> allows you to change to a directory while keeping the one you were in previously in memory. Once you&#8217;re done farting around with that directory of yours, you can invoke <code>popd</code> to automagically return to wherever you were before you <code>pushd</code>&#8216;d.</p>

<p>An example</p>

<pre>
<code>
 C:\WINDOWS&gt;pushd "c:\Documents and Settings"

 C:\Documents and Settings&gt;dir
 Volume in drive C has no label.
 Volume Serial Number is 383C-9102

 Directory of C:\Documents and Settings

 2005-09-01  10:54    &lt;dir&gt; .
 2005-09-01  10:54    &lt;dir&gt; ..
 2005-08-25  12:43    &lt;dir&gt; Admin
 2005-06-01  18:03    &lt;dir&gt; Administrator
 2005-09-15  12:49    &lt;dir&gt; All Users
 2005-09-01  11:30    &lt;dir&gt; Tech1
 2005-09-19  09:16    &lt;dir&gt; Tech3
                0 File(s)              0 bytes
                7 Dir(s)  18 110 914 560 bytes free

C:\Documents and Settings&gt;popd

C:\WINDOWS&gt;
</code>
</pre>

<p>See, simple and sweet. I use this alot under unix when I am switching between editing the Apache configuration and editing a file in a virtual host root folder.</p>

<p>That&#8217;s all for today. In the next installment of this guide, we will discuss the following:</p>

<ul>
<li>Running a bash compatible shell on windows</li>
<li>Emulating a unix shell</li>
<li>MSH (Microsoft Command Shell), currently codenamed Monad.</li>
</ul>

<p>Feel free to comment if you found this useful.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.raptorized.com/2005/09/17/rediscovering-the-windows-command-prompt/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
