Error Message: Windows Cannot Find CScript.exe

Article translations Article translations
Article ID: 248121 - View products that this article applies to.
This article was previously published under Q248121
Expand all | Collapse all

SYMPTOMS

When you attempt to run a script file, you may receive the following error message:
Windows cannot find CScript.exe. This program is needed for opening files of type (file type).

CAUSE

This issue can occur if the path for the Cscript.exe program listed in the registry is incorrect for the Cscript shell extension Open2, Open with MS-DOS Prompt.

RESOLUTION

To resolve this issue, use Registry Editor to correct the path to Cscript.exe. The Cscript.exe file is located in the Windows\Command folder.

In the following Registry keys, replace the System\Unknown part of the value data with Command.
HKEY_CLASSES_ROOT\JSEFile\Shell\Open2\Command
HKEY_CLASSES_ROOT\JSFile\Shell\Open2\Command
HKEY_CLASSES_ROOT\VBEFile\Shell\Open2\Command
HKEY_CLASSES_ROOT\VBSFile\Shell\Open2\Command
HKEY_CLASSES_ROOT\WSFFile\Shell\Open2\Command

MORE INFORMATION

The path to Cscript.exe that is created when you install Internet Explorer 5.01 is:
(drive):\(Windir)\SYSTEM\unknown\CScript.exe "%1" %*
For additional information about how to determine which folder Windows is installed in, click the article number below to view the article in the Microsoft Knowledge Base:
305792 How to Determine Which Folder Windows Is Installed In

Properties

Article ID: 248121 - Last Review: November 14, 2003 - Revision: 3.0
APPLIES TO
  • Microsoft Internet Explorer 5.01
  • Microsoft Internet Explorer 5.01
  • Microsoft Internet Explorer 5.01
Keywords: 
kbenv kberrmsg kbprb KB248121
Retired KB Content Disclaimer
This article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com