<?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>Matt Refghi&#039;s Blog &#187; command prompt</title>
	<atom:link href="http://mattrefghi.com/blog/tag/command-prompt/feed/" rel="self" type="application/rss+xml" />
	<link>http://mattrefghi.com/blog</link>
	<description>Computer Science and other written works</description>
	<lastBuildDate>Sat, 10 Mar 2012 17:58:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Open Command Window Here in Windows 7</title>
		<link>http://mattrefghi.com/blog/2011/01/open-command-window-here-in-windows-7/</link>
		<comments>http://mattrefghi.com/blog/2011/01/open-command-window-here-in-windows-7/#comments</comments>
		<pubDate>Fri, 07 Jan 2011 12:00:29 +0000</pubDate>
		<dc:creator>Matt Refghi</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[command prompt]]></category>
		<category><![CDATA[powertoy]]></category>
		<category><![CDATA[windows 7]]></category>
		<category><![CDATA[windows xp]]></category>

		<guid isPermaLink="false">http://mattrefghi.com/wordpress/?p=2420</guid>
		<description><![CDATA[Despite the numerous graphical advancements introduced]]></description>
			<content:encoded><![CDATA[<p>Despite the numerous graphical advancements introduced in Windows 7, the <a href="http://en.wikipedia.org/wiki/Command_Prompt" target="_blank">Command Prompt</a> has remained largely unchanged. Yet, it has always remained a useful, lightweight tool for interacting with the file system. I remember using it often in Windows XP, which was really when I was getting serious about Computer Science. In fact, I looked for ways to improve the command prompt experience. I eventually discovered <a href="http://www.microsoft.com/windowsxp/downloads/powertoys/xppowertoys.mspx" target="_blank">a power toy for Windows XP titled &#8220;Open Command Window Here&#8221;</a>. When installed, it would add an extra option to the context menu, which simply said &#8220;Open Command Window Here&#8221;. It would typically be visible when you right-clicked a folder, and, once selected, would make a new Command Prompt window would appear. This new window would have current location automatically set to the folder you right-clicked. This was particularly useful when you want to access a folder that is deep in the folder structure, and were already seeing it in Windows Explorer.</p>
<p>Unlike Windows XP, Windows 7 <em>ships </em>with this feature; however, it isn&#8217;t immediately visible to the user. To access it, you have to hold <kbd>SHIFT</kbd>, and <em>then </em>right-click. This will make numerous additional options appear, among them, &#8220;Open Command Window Here&#8221; can be seen.</p>
<p style="text-align: center;"><a href="http://mattrefghi.com/wordpress/wp-content/uploads/2011/01/OpenCommandWindowHere2.png" rel="lightbox[2420]"><img class="aligncenter size-full wp-image-2434" src="http://mattrefghi.com/wordpress/wp-content/uploads/2011/01/OpenCommandWindowHere2.png" alt="Shows the &quot;Open command window here&quot; context option, which is made available when pressing SHIFT in Windows Explorer. Allows quick access to the command (DOS) prompt, while being location aware." width="503" height="188" /></a></p>
<p style="text-align: center;">
<p>In general, I suggest experimenting with the <kbd>SHIFT</kbd> modifier &#8211; some of the &#8220;hidden&#8221; contextual options are very interesting.</p>
<p><a class="a2a_button_digg" href="http://www.addtoany.com/add_to/digg?linkurl=http%3A%2F%2Fmattrefghi.com%2Fblog%2F2011%2F01%2Fopen-command-window-here-in-windows-7%2F&amp;linkname=Open%20Command%20Window%20Here%20in%20Windows%207" title="Digg" rel="nofollow" target="_blank"><img src="http://mattrefghi.com/blog/wp-content/plugins/add-to-any/icons/digg.png" width="16" height="16" alt="Digg"/></a><a class="a2a_button_reddit" href="http://www.addtoany.com/add_to/reddit?linkurl=http%3A%2F%2Fmattrefghi.com%2Fblog%2F2011%2F01%2Fopen-command-window-here-in-windows-7%2F&amp;linkname=Open%20Command%20Window%20Here%20in%20Windows%207" title="Reddit" rel="nofollow" target="_blank"><img src="http://mattrefghi.com/blog/wp-content/plugins/add-to-any/icons/reddit.png" width="16" height="16" alt="Reddit"/></a><a class="a2a_button_stumbleupon" href="http://www.addtoany.com/add_to/stumbleupon?linkurl=http%3A%2F%2Fmattrefghi.com%2Fblog%2F2011%2F01%2Fopen-command-window-here-in-windows-7%2F&amp;linkname=Open%20Command%20Window%20Here%20in%20Windows%207" title="StumbleUpon" rel="nofollow" target="_blank"><img src="http://mattrefghi.com/blog/wp-content/plugins/add-to-any/icons/stumbleupon.png" width="16" height="16" alt="StumbleUpon"/></a><a class="a2a_button_slashdot" href="http://www.addtoany.com/add_to/slashdot?linkurl=http%3A%2F%2Fmattrefghi.com%2Fblog%2F2011%2F01%2Fopen-command-window-here-in-windows-7%2F&amp;linkname=Open%20Command%20Window%20Here%20in%20Windows%207" title="Slashdot" rel="nofollow" target="_blank"><img src="http://mattrefghi.com/blog/wp-content/plugins/add-to-any/icons/slashdot.png" width="16" height="16" alt="Slashdot"/></a><a class="a2a_button_facebook_like addtoany_special_service" data-href="http://mattrefghi.com/blog/2011/01/open-command-window-here-in-windows-7/"></a><a class="a2a_button_twitter_tweet addtoany_special_service" data-count="horizontal" data-url="http://mattrefghi.com/blog/2011/01/open-command-window-here-in-windows-7/" data-text="Open Command Window Here in Windows 7"></a><a class="a2a_button_google_plusone addtoany_special_service" data-href="http://mattrefghi.com/blog/2011/01/open-command-window-here-in-windows-7/"></a><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fmattrefghi.com%2Fblog%2F2011%2F01%2Fopen-command-window-here-in-windows-7%2F&amp;title=Open%20Command%20Window%20Here%20in%20Windows%207" id="wpa2a_2"><img src="http://mattrefghi.com/blog/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://mattrefghi.com/blog/2011/01/open-command-window-here-in-windows-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rebooting and Shutting Down via Command Prompt</title>
		<link>http://mattrefghi.com/blog/2010/11/rebooting-and-shutting-down-via-command-prompt/</link>
		<comments>http://mattrefghi.com/blog/2010/11/rebooting-and-shutting-down-via-command-prompt/#comments</comments>
		<pubDate>Sun, 28 Nov 2010 23:27:43 +0000</pubDate>
		<dc:creator>Matt Refghi</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[command prompt]]></category>
		<category><![CDATA[reboot]]></category>
		<category><![CDATA[remote desktop]]></category>
		<category><![CDATA[shutdown]]></category>

		<guid isPermaLink="false">http://mattrefghi.com/wordpress/?p=2187</guid>
		<description><![CDATA[When I originally found myself]]></description>
			<content:encoded><![CDATA[<p>When I originally found myself needing to reboot a machine via <a href="http://en.wikipedia.org/wiki/Remote_Desktop_Protocol" target="_blank">Remote Desktop</a>, I realized that the shut down option was removed from the Start menu. Instead, I had the option to end my Remote Desktop session, nothing else. <kbd>CTRL</kbd>+<kbd>ALT</kbd>+<kbd>DEL</kbd> understandably didn&#8217;t work, as my local machine interpreted the key combination, not the remote machine. Without an obvious solution at the time, I remembered that there was a command line executable that could be used to shut down. The executable worked so well that I put batch file shortcuts on the desktop of the machine, allowing me to either restart or shut down the machine with a simple double-click. Seeing as this proved useful to me, I thought I would share how to do it.</p>
<p>To reboot the remote machine, simply use the following command in its <a href="http://en.wikipedia.org/wiki/Command_Prompt" target="_blank">Command Prompt</a>.</p>
<blockquote><p>shutdown /r /t:1 /y</p></blockquote>
<p>There are three arguments being specified here: the first tells the shutdown executable that you want to reboot, not shut down. The second tells it to wait 1 second before shutting down, rather than the default 20 seconds. Finally, the third tells it to automatically answer &#8220;Yes&#8221; to any questions asked by the operating system when shutting down. The latter may speed up the operation, but you may lose any unsaved changes.</p>
<p>To shut down, simply use the following command:</p>
<blockquote><p>shutdown /t:1 /y</p></blockquote>
<p>That&#8217;s all there is to it. For more information about the shutdown comment, see <a href="http://support.microsoft.com/kb/317371" target="_blank">this Microsoft Support article</a>.</p>
<p>After using this approach for a month or so, I discovered that there was a way to use <kbd>CTRL</kbd>+<kbd>ALT</kbd>+<kbd>DEL</kbd> in Remote Desktop. Instead of <kbd>CTRL</kbd>+<kbd>ALT</kbd>+<kbd>DEL</kbd>, simply press <kbd>CTRL</kbd>+<kbd>ALT</kbd>+<kbd>END</kbd>, and the remote machine will behave as if it received a <kbd>CTRL</kbd>+<kbd>ALT</kbd>+<kbd>DEL</kbd> signal.</p>
<p><a class="a2a_button_digg" href="http://www.addtoany.com/add_to/digg?linkurl=http%3A%2F%2Fmattrefghi.com%2Fblog%2F2010%2F11%2Frebooting-and-shutting-down-via-command-prompt%2F&amp;linkname=Rebooting%20and%20Shutting%20Down%20via%20Command%20Prompt" title="Digg" rel="nofollow" target="_blank"><img src="http://mattrefghi.com/blog/wp-content/plugins/add-to-any/icons/digg.png" width="16" height="16" alt="Digg"/></a><a class="a2a_button_reddit" href="http://www.addtoany.com/add_to/reddit?linkurl=http%3A%2F%2Fmattrefghi.com%2Fblog%2F2010%2F11%2Frebooting-and-shutting-down-via-command-prompt%2F&amp;linkname=Rebooting%20and%20Shutting%20Down%20via%20Command%20Prompt" title="Reddit" rel="nofollow" target="_blank"><img src="http://mattrefghi.com/blog/wp-content/plugins/add-to-any/icons/reddit.png" width="16" height="16" alt="Reddit"/></a><a class="a2a_button_stumbleupon" href="http://www.addtoany.com/add_to/stumbleupon?linkurl=http%3A%2F%2Fmattrefghi.com%2Fblog%2F2010%2F11%2Frebooting-and-shutting-down-via-command-prompt%2F&amp;linkname=Rebooting%20and%20Shutting%20Down%20via%20Command%20Prompt" title="StumbleUpon" rel="nofollow" target="_blank"><img src="http://mattrefghi.com/blog/wp-content/plugins/add-to-any/icons/stumbleupon.png" width="16" height="16" alt="StumbleUpon"/></a><a class="a2a_button_slashdot" href="http://www.addtoany.com/add_to/slashdot?linkurl=http%3A%2F%2Fmattrefghi.com%2Fblog%2F2010%2F11%2Frebooting-and-shutting-down-via-command-prompt%2F&amp;linkname=Rebooting%20and%20Shutting%20Down%20via%20Command%20Prompt" title="Slashdot" rel="nofollow" target="_blank"><img src="http://mattrefghi.com/blog/wp-content/plugins/add-to-any/icons/slashdot.png" width="16" height="16" alt="Slashdot"/></a><a class="a2a_button_facebook_like addtoany_special_service" data-href="http://mattrefghi.com/blog/2010/11/rebooting-and-shutting-down-via-command-prompt/"></a><a class="a2a_button_twitter_tweet addtoany_special_service" data-count="horizontal" data-url="http://mattrefghi.com/blog/2010/11/rebooting-and-shutting-down-via-command-prompt/" data-text="Rebooting and Shutting Down via Command Prompt"></a><a class="a2a_button_google_plusone addtoany_special_service" data-href="http://mattrefghi.com/blog/2010/11/rebooting-and-shutting-down-via-command-prompt/"></a><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fmattrefghi.com%2Fblog%2F2010%2F11%2Frebooting-and-shutting-down-via-command-prompt%2F&amp;title=Rebooting%20and%20Shutting%20Down%20via%20Command%20Prompt" id="wpa2a_4"><img src="http://mattrefghi.com/blog/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://mattrefghi.com/blog/2010/11/rebooting-and-shutting-down-via-command-prompt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Ping to Monitor Reboots</title>
		<link>http://mattrefghi.com/blog/2009/01/using-ping-to-monitor-reboots/</link>
		<comments>http://mattrefghi.com/blog/2009/01/using-ping-to-monitor-reboots/#comments</comments>
		<pubDate>Sat, 24 Jan 2009 13:45:01 +0000</pubDate>
		<dc:creator>Matt Refghi</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[command prompt]]></category>
		<category><![CDATA[ping]]></category>
		<category><![CDATA[reboot]]></category>

		<guid isPermaLink="false">http://www.mattrefghi.com/wordpress/?p=137</guid>
		<description><![CDATA[When you`re rebooting a computer,]]></description>
			<content:encoded><![CDATA[<p>When you`re rebooting a computer, and you need to know exactly when it is back online, try using this command:</p>
<blockquote><p>ping -t &lt;target&gt;</p></blockquote>
<p>&lt;target&gt; can be an IP or domain name.</p>
<p>This command will keep pinging the machine endlessly, which can reveal exactly when the computer is back on the network. As long as you keep getting &#8220;Request time out&#8221;, the machine isn&#8217;t online yet. When you get a reply, as illustrated below, you know you can connect to the machine.</p>
<div id="attachment_3369" class="wp-caption aligncenter" style="width: 493px"><a href="http://mattrefghi.com/blog/wp-content/uploads/2009/01/pingt2.png" rel="lightbox[137]"><img class="size-full wp-image-3369 " src="http://mattrefghi.com/blog/wp-content/uploads/2009/01/pingt2.png" alt="Example output of ping -t shown in a Command Prompt window. " width="483" height="459" /></a><p class="wp-caption-text">Example output of ping -t</p></div>
<p>Personally, I tend to put this window on my secondary monitor, while I continue working on the primary monitor.  As soon as the machine is online, I close the window <em>or </em>press CTRL+C to prevent the ping from going on endlessly. Be careful how you use this &#8211; some hosts can interpret endless pinging as an attack.</p>
<p>Thanks to François Deschênes for originally showing me this trick.</p>
<p><a class="a2a_button_digg" href="http://www.addtoany.com/add_to/digg?linkurl=http%3A%2F%2Fmattrefghi.com%2Fblog%2F2009%2F01%2Fusing-ping-to-monitor-reboots%2F&amp;linkname=Using%20Ping%20to%20Monitor%20Reboots" title="Digg" rel="nofollow" target="_blank"><img src="http://mattrefghi.com/blog/wp-content/plugins/add-to-any/icons/digg.png" width="16" height="16" alt="Digg"/></a><a class="a2a_button_reddit" href="http://www.addtoany.com/add_to/reddit?linkurl=http%3A%2F%2Fmattrefghi.com%2Fblog%2F2009%2F01%2Fusing-ping-to-monitor-reboots%2F&amp;linkname=Using%20Ping%20to%20Monitor%20Reboots" title="Reddit" rel="nofollow" target="_blank"><img src="http://mattrefghi.com/blog/wp-content/plugins/add-to-any/icons/reddit.png" width="16" height="16" alt="Reddit"/></a><a class="a2a_button_stumbleupon" href="http://www.addtoany.com/add_to/stumbleupon?linkurl=http%3A%2F%2Fmattrefghi.com%2Fblog%2F2009%2F01%2Fusing-ping-to-monitor-reboots%2F&amp;linkname=Using%20Ping%20to%20Monitor%20Reboots" title="StumbleUpon" rel="nofollow" target="_blank"><img src="http://mattrefghi.com/blog/wp-content/plugins/add-to-any/icons/stumbleupon.png" width="16" height="16" alt="StumbleUpon"/></a><a class="a2a_button_slashdot" href="http://www.addtoany.com/add_to/slashdot?linkurl=http%3A%2F%2Fmattrefghi.com%2Fblog%2F2009%2F01%2Fusing-ping-to-monitor-reboots%2F&amp;linkname=Using%20Ping%20to%20Monitor%20Reboots" title="Slashdot" rel="nofollow" target="_blank"><img src="http://mattrefghi.com/blog/wp-content/plugins/add-to-any/icons/slashdot.png" width="16" height="16" alt="Slashdot"/></a><a class="a2a_button_facebook_like addtoany_special_service" data-href="http://mattrefghi.com/blog/2009/01/using-ping-to-monitor-reboots/"></a><a class="a2a_button_twitter_tweet addtoany_special_service" data-count="horizontal" data-url="http://mattrefghi.com/blog/2009/01/using-ping-to-monitor-reboots/" data-text="Using Ping to Monitor Reboots"></a><a class="a2a_button_google_plusone addtoany_special_service" data-href="http://mattrefghi.com/blog/2009/01/using-ping-to-monitor-reboots/"></a><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fmattrefghi.com%2Fblog%2F2009%2F01%2Fusing-ping-to-monitor-reboots%2F&amp;title=Using%20Ping%20to%20Monitor%20Reboots" id="wpa2a_6"><img src="http://mattrefghi.com/blog/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://mattrefghi.com/blog/2009/01/using-ping-to-monitor-reboots/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

