https://www.betaarchive.com/wiki/index.php?title=Microsoft_KB_Archive/246766&feed=atom&action=history
Microsoft KB Archive/246766 - Revision history
2024-03-28T08:41:15Z
Revision history for this page on the wiki
MediaWiki 1.39.3
https://www.betaarchive.com/wiki/index.php?title=Microsoft_KB_Archive/246766&diff=135586&oldid=prev
3155ffGd: importing KB archive
2020-07-18T16:13:16Z
<p>importing KB archive</p>
<p><b>New page</b></p><div><div id="nsbanner"><br />
<br />
<div id="bannerrow1"><br />
<br />
{|<br />
| Knowledge Base<br />
|<br />
|}<br />
<br />
<br />
</div><br />
<div id="TitleRow"><br />
<br />
= <span id="KB246766"></span>Executable File Does Not Run from the Command Prompt in Windows NT =<br />
<br />
<br />
</div><br />
<br />
</div><br />
<div id="nstext" valign="BOTTOM"><br />
<br />
Article ID: 246766<br />
<br />
Article Last Modified on 11/1/2006<br />
<br />
<br />
-----<br />
<br />
APPLIES TO<br /><br />
<br /><br />
<br />
* Microsoft Windows NT Server 4.0 Standard Edition<br />
* Microsoft Windows NT Workstation 4.0 Developer Edition<br />
<br />
<br />
-----<br />
<br />
<div class="notice_section"><br />
<br />
This article was previously published under Q246766<br />
<br />
</div><br />
<div class="notice_section"><br />
<br />
'''IMPORTANT''': This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base:<br />
<div class="indent"><br />
<br />
[[../256986|256986]] Description of the Microsoft Windows Registry<br />
<br />
<br />
</div><br />
<br />
</div><br />
<div class="symptoms_section"><br />
<br />
== SYMPTOMS ==<br />
<br />
When you attempt to run an executable file or a batch file from the command prompt on a computer running Microsoft Windows NT Server 4.0 or Windows NT Workstation 4.0, the file may not run. When you then attempt to run the executable file from the Autoexec.bat file, using the %pathext% variable, the file still may not run.<br />
<br />
</div><br />
<div class="cause_section"><br />
<br />
== CAUSE ==<br />
<br />
This behavior can occur when a value is missing from the following registry key:<br />
<pre class="fixed_text">HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session<br />
Manager\Environment<br />
</pre><br />
<br />
</div><br />
<div class="resolution_section"><br />
<br />
== RESOLUTION ==<br />
<br />
'''WARNING''': If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.<br /><br />
<br /><br />
To resolve this issue, add the pathext value to the Environment key in the registry:<br /><br />
<br /><br />
<br />
<ol><br />
<li><p>Start Registry Editor (Regedt32.exe) and locate the following key:</p><br />
<pre class="fixed_text">HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session<br />
Manager\Environment<br />
</pre></li><br />
<li>Add the value to the registry key:<br />
<ol style="list-style-type: lower-alpha;"><br />
<li>On the '''Edit''' menu, click '''Add Value'''.</li><br />
<li>In the '''Value Name''' box, type the following:<br />
<div class="indent"><br />
<br />
<p><span class="kbd userinput"> PATHEXT=.COM;.EXE;.CMD;.BAT</span></p><br />
<br />
</div><br />
'''NOTE''': Add any extensions that need to be executable.</li><br />
<li>In the '''Data Type''' list, click '''REG_SZ''', and then click '''OK'''.</li></ol><br />
</li><br />
<li>Quit Registry Editor, and then restart the computer.</li></ol><br />
<br />
<br />
</div><br />
<br /><br />
<br />
Additional query words: com exe bat<br />
<br />
Keywords: kbprb KB246766<br />
<br />
<div class="footer"><br />
<br />
<br /><br />
<br />
<br />
-----<br />
<br />
[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]<br />
<br />
<span>© Microsoft Corporation. All rights reserved.</span><br />
<br />
<br />
</div><br />
<br />
</div></div>
3155ffGd