<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[gOxiA=苏繁=SuFan Blog]]></title> 
<link>https://maytide.net/index.php</link> 
<description><![CDATA[gOxiA,苏繁,sufan,Microsoft MVP]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[gOxiA=苏繁=SuFan Blog]]></copyright>
<item>
<link>https://maytide.net/read.php/854.htm</link>
<title><![CDATA[将 Command Prompt Here 添加到 Windows Explorer]]></title> 
<author>gOxiA &lt;sufan_cn@msn.com&gt;</author>
<category><![CDATA[PowerShell 和脚本]]></category>
<pubDate>Sat, 09 Jul 2005 01:10:43 +0000</pubDate> 
<guid>https://maytide.net/read.php/854.htm</guid> 
<description>
<![CDATA[ 
	<div><p>将&rsquo; <strong>Command Prompt Here</strong> &rsquo;命令添加到 Windows Explorer 系统菜单。如果用户从系统菜单中选择&lsquo; <strong>Command Prompt Here</strong> &rsquo;，将弹出一个命令窗口，在与当前的 Windows Explorer 文件夹相同的文件夹中打开。<br /></p></div><div><p><br />有关使用 Windows Script Host 写入注册表的信息，请单击 <a href="http://msdn.microsoft.com/library/en-us/script56/html/wsmthregwrite.asp">此处</a>。</p></div><div><p><strong><br />支持平台</strong></p></div><table border="0" cellspacing="0" cellpadding="0" class="dataTable" id="EFAA"><thead></thead><tbody><tr class="record" valign="top"><td><p class="lastInCell"><strong>Windows XP</strong></p></td><td style="border-right: #cccccc 1px solid"><p class="lastInCell"><strong>是</strong></p></td></tr><tr class="evenRecord" valign="top"><td><p class="lastInCell"><strong>Windows Server 2003</strong></p></td><td style="border-right: #cccccc 1px solid"><p class="lastInCell"><strong>是</strong></p></td></tr><tr class="record" valign="top"><td><p class="lastInCell"><strong>Windows 2000</strong></p></td><td style="border-right: #cccccc 1px solid"><p class="lastInCell"><strong>是</strong></p></td></tr><tr class="evenRecord" valign="top"><td><p class="lastInCell"><strong>Windows NT 4.0</strong></p></td><td style="border-right: #cccccc 1px solid"><p class="lastInCell"><strong>是</strong></p></td></tr><tr class="record" valign="top"><td><p class="lastInCell"><strong>Windows 98</strong></p></td><td style="border-right: #cccccc 1px solid"><p class="lastInCell"><strong>是，但是需要将 cmd.exe 更改为 command.com</strong></p></td></tr></tbody></table><br /><div><p></p><p><strong>脚本代码<br /></strong><br />Set objShell = CreateObject(&quot;WScript.Shell&quot;)<br />objShell.RegWrite &quot;HKCR&#92;Folder&#92;Shell&#92;MenuText&#92;Command&#92;&quot;, &quot;cmd.exe /k cd &quot; &amp; chr(34) &amp; &quot;%1&quot; &amp; chr(34)<br />objShell.RegWrite &quot;HKCR&#92;Folder&#92;Shell&#92;MenuText&#92;&quot;, &quot;Command Prompt Here&quot;</p></div>
]]>
</description>
</item>
</channel>
</rss>