<?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>Rocker &#187; Multiple Path</title>
	<atom:link href="http://www.shishirsharma.com/tag/multiple-path/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.shishirsharma.com</link>
	<description>Everything bloggable around Shishir Sharma.</description>
	<lastBuildDate>Fri, 06 Jan 2012 09:47:18 +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>Customizing Command Prompt</title>
		<link>http://www.shishirsharma.com/2008/08/03/customizing-command-prompt/</link>
		<comments>http://www.shishirsharma.com/2008/08/03/customizing-command-prompt/#comments</comments>
		<pubDate>Sun, 03 Aug 2008 13:09:55 +0000</pubDate>
		<dc:creator>Shishir Sharma 'criss'</dc:creator>
				<category><![CDATA[Customization]]></category>
		<category><![CDATA[command line interface]]></category>
		<category><![CDATA[Command prompt]]></category>
		<category><![CDATA[Multiple Path]]></category>
		<category><![CDATA[Path]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://shishirsharma.com/?p=65</guid>
		<description><![CDATA[Well many times this happens that we want to work with the command prompt. Sometimes we wanna work with many CLI (command line interface). We usually SET the %PATH% variable of system or specific user for this. Things get really worse when we wanna work with more them one version of same Application/Compiler/System. We can't set the variable as all have similar directory structure and almost same binary/executable names. <a href="http://www.shishirsharma.com/2008/08/03/customizing-command-prompt/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Well many times this happens that we want to work with the command prompt. Sometimes we wanna work with many CLI (command line interface). We usually SET the %PATH% variable of system or specific user for this. Things get really worse when we wanna work with more them one version of same Application/Compiler/System. We can&#8217;t set the variable as all have similar directory structure and almost same binary/executable names.<br />
<span id="more-65"></span><br />
<strong>There are three ways out from this:</strong></p>
<ul>
<li>Set all the paths and change names of binaries<br />
(stupid. You would have to remember all names until you use some uniform naming method still you will keep guessing).</li>
<li> Create many users and set different user paths<br />
(Foolish. Then changing version will be like logging as different user).</li>
<li> Use a Customized Command Prompt<br />
(Elegant. Its like some developers are working)</li>
</ul>
<p><strong>How to Customize Command Prompt.</strong></p>
<p style="padding-left: 30px;">Well it involves <strong>1,000</strong> steps:-) no it doesn&#8217;t it involves <strong>2</strong> steps only.</p>
<ol>
<li>Create a file Called YOURSYSTEM-VER-cofig.bat. Where YOURSYSTEM is the name of the system  you are using and VER is the version of that specific system like python-2.6-config.bat.</li>
<li>Now put some codes in the file. Like:</li>
<p><code>@ECHO OFF<br />
@SET PATH= %PATH%;C:\appand\your\path\here;D:\appand\one\more<br />
@SET SOMEVARABLE=E:\some\path<br />
@SET DIRCMD=/D /N<br />
@PROMPT $G<br />
@ECHO Setting environment for YOURSYSTEM VER<br />
@ECHO %TIME% %DATE%<br />
@ECHO Namaskar Criss.</code></p>
<li>Then create a new shortcut Right click on empty space or File -&gt; New -&gt; Shortcut.</li>
</ol>
<div id="attachment_78" class="wp-caption aligncenter" style="width: 310px"><a href="http://shishirsharma.com/wp/wp-content/uploads/2008/08/c1.jpg" rel="lightbox[65]" title="create shortcut c1"><img class="size-medium wp-image-78" title="create shortcut c1" src="http://shishirsharma.com/wp/wp-content/uploads/2008/08/c1-300x219.jpg" alt="Create new shortcut " width="300" height="219" /></a><p class="wp-caption-text">Create new shortcut </p></div>
<p>Then type <code>%COMPSPEC% /K "C:\path\to\your\file"</code> in it</p>
<div id="attachment_79" class="wp-caption aligncenter" style="width: 310px"><a href="http://shishirsharma.com/wp/wp-content/uploads/2008/08/c2.jpg" rel="lightbox[65]" title="shortcut c2"><img class="size-medium wp-image-79" title="shortcut c2" src="http://shishirsharma.com/wp/wp-content/uploads/2008/08/c2-300x219.jpg" alt="shortcut" width="300" height="219" /></a><p class="wp-caption-text">Creating shortcut</p></div>
<p>Then <strong>Rename </strong>the shortcut to a proper name.</p>
<div id="attachment_80" class="wp-caption aligncenter" style="width: 310px"><a href="http://shishirsharma.com/wp/wp-content/uploads/2008/08/c3.jpg" rel="lightbox[65]" title="create shortcut c3"><img class="size-medium wp-image-80" title="create shortcut c3" src="http://shishirsharma.com/wp/wp-content/uploads/2008/08/c3-300x221.jpg" alt="Rename shorcut to a Proper name" width="300" height="221" /></a><p class="wp-caption-text">Rename shorcut to a Proper name</p></div>
<p>Then click on Finish. Now <strong>Right click</strong> on the shortcut.</p>
<div id="attachment_81" class="wp-caption aligncenter" style="width: 310px"><a href="http://shishirsharma.com/wp/wp-content/uploads/2008/08/c4.jpg" rel="lightbox[65]" title="shortcut  c4"><img class="size-medium wp-image-81" title="shortcut  c4" src="http://shishirsharma.com/wp/wp-content/uploads/2008/08/c4-300x130.jpg" alt="Command prompt shortcut" width="300" height="130" /></a><p class="wp-caption-text">Command prompt shortcut</p></div>
<p>Select shortcut <strong>properties</strong>.</p>
<div id="attachment_82" class="wp-caption aligncenter" style="width: 310px"><a href="http://shishirsharma.com/wp/wp-content/uploads/2008/08/c5.jpg" rel="lightbox[65]" title="shortcut c5"><img class="size-medium wp-image-82" title="shortcut c5" src="http://shishirsharma.com/wp/wp-content/uploads/2008/08/c5-300x113.jpg" alt="Shortcut properties" width="300" height="113" /></a><p class="wp-caption-text">Shortcut properties</p></div>
<p>We can set the Fonts of the Command prompt.</p>
<div id="attachment_83" class="wp-caption aligncenter" style="width: 223px"><a href="http://shishirsharma.com/wp/wp-content/uploads/2008/08/c6.jpg" rel="lightbox[65]" title="shortcut properties c6"><img class="size-medium wp-image-83" title="shortcut properties c6" src="http://shishirsharma.com/wp/wp-content/uploads/2008/08/c6-213x300.jpg" alt="Shortcut properties." width="213" height="300" /></a><p class="wp-caption-text">Shortcut properties.</p></div>
<p>We can set the color of the command prompt. like BACKGROUND, FOREGROUND.</p>
<div id="attachment_84" class="wp-caption aligncenter" style="width: 223px"><a href="http://shishirsharma.com/wp/wp-content/uploads/2008/08/c7.jpg" rel="lightbox[65]" title="shortcut properties c7"><img class="size-medium wp-image-84" title="shortcut properties c7" src="http://shishirsharma.com/wp/wp-content/uploads/2008/08/c7-213x300.jpg" alt="Shortcut properties " width="213" height="300" /></a><p class="wp-caption-text">Shortcut properties </p></div>
<p>We can even set the buffer and the screen layout of the shell window.</p>
<div id="attachment_85" class="wp-caption aligncenter" style="width: 223px"><a href="http://shishirsharma.com/wp/wp-content/uploads/2008/08/c8.jpg" rel="lightbox[65]" title="shorcut properties c8"><img class="size-medium wp-image-85" title="shorcut properties c8" src="http://shishirsharma.com/wp/wp-content/uploads/2008/08/c8-213x300.jpg" alt="Shorcut properties" width="213" height="300" /></a><p class="wp-caption-text">Shortcut properties</p></div>
<p>Example.</p>
<div id="attachment_86" class="wp-caption aligncenter" style="width: 310px"><a href="http://shishirsharma.com/wp/wp-content/uploads/2008/08/c9.jpg" rel="lightbox[65]" title="command promptc9"><img class="size-medium wp-image-86" title="command promptc9" src="http://shishirsharma.com/wp/wp-content/uploads/2008/08/c9-300x158.jpg" alt="Costomized command prompt" width="300" height="158" /></a><p class="wp-caption-text">Customized command prompt</p></div>
<p>Now you are ready to enjoy this very good feature.</p>
<blockquote><p>I recommend you to keep all these files in one folder say with name config-all and with attribute as hidden.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.shishirsharma.com/2008/08/03/customizing-command-prompt/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

