There is no script engine for file extension ". js"

Source: Internet
Author: User
Resolution
This happens if the. js file class data is missing or incorrect. Follow these steps to resolve the problem:

Instructions for Windows Vista
Open an Elevated Command Prompt window. To do so, click Start, click All Programs, click Accessories, right-click Command Prompt, and then click Run as administrator.
* Type the following command and press ENTER:
Regsvr32 % systemroot % \ system32 \ jscript. dll
* Type EXIT to close the Command Prompt window
* Download vista_js_fix.reg from the Attachments section (scroll below), and save it to Desktop
* Right-click vista_js_fix.reg and choose Merge
* Click Yes when asked for confirmation.

Instructions for Windows XP
* Click Start, Run and type:
Regsvr32 % systemroot % \ system32 \ jscript. dll

* Press ENTER
* Download xp_js_fix.reg from the Attachments section below, and save it to Desktop
* Right-click xp_js_fix.reg and choose Merge
* Click Yes when asked for confirmation.

If the above does not solve the problem, then download and install Windows Script 5.7 from the following Microsoft Web site:

Http://www.microsoft.com/downloads/details.aspx? FamilyID = 47809025-D896-482E-A0D6-524E7E844D81 & displaylang = en

Link from: http://www.winhelponline.com/articles/230/1/Error-There-is-no-script-engine-for-file-extension-when-running-js-files.html

Xp_js_fix.reg content

Windows Registry Editor Version 5.00

;. JS file type association fix-Windows XP
; Author: Ramesh srin.pdf
; Created: Aug 30,200 7
; Homepage: http://www.winhelponline.com

[HKEY_CLASSES_ROOT \. JS]
@ = "JSFile"
"CachedFilterIID" = "{c1243ca0-bf96-11cd-b579-08002b30bfeb }"

[HKEY_CLASSES_ROOT \. JS \ PersistentHandler]
@ = "{5e941d80-bf96-11cd-b579-08002b30bfeb }"

[HKEY_CLASSES_ROOT \ JSFile]
@ = "JScript Script File"
"FriendlyTypeName" = hex (2):, 6d ,\
00, 6f, 00, 6f, 25, 00, 5c, 00, 6d, 00 ,\
, 00, 5c, 68, 00, 6c, 6c, 00, 2c ,\
00, 2d, 38, 34, 00

[HKEY_CLASSES_ROOT \ JSFile \ DefaultIcon]
@ = Hex (2): 25, 00, 53,00, 79,00, 00, 6d, 00, 6f, 00, 6f, 25 ,\
00, 5c, 00, 00, 00, 5c, 53, 00 ,\
, 00, 2c, 33, 00, 00

[HKEY_CLASSES_ROOT \ JSFile \ ScriptEngine]
@ = "JScript"

[HKEY_CLASSES_ROOT \ JSFile \ ScriptHostEncode]
@ = "{85131630-480C-11D2-B1F9-00C04F86C324 }"

[HKEY_CLASSES_ROOT \ JSFile \ Shell]

[HKEY_CLASSES_ROOT \ JSFile \ Shell \ Edit]
@ = "& Edit"

[HKEY_CLASSES_ROOT \ JSFile \ Shell \ Edit \ Command]
@ = "Notepad.exe \" % 1 \""

[HKEY_CLASSES_ROOT \ JSFile \ Shell \ Open]
@ = "& Open"

[HKEY_CLASSES_ROOT \ JSFile \ Shell \ Open \ Command]
@ = Hex (2): 25, 00, 53,00, 79,00, 00, 6d, 00, 6f, 00, 6f, 25 ,\
00, 5c, 00, 00, 00, 5c, 53, 00 ,\
,\
, 22, 00, 00, 2a, 00

[HKEY_CLASSES_ROOT \ JSFile \ Shell \ Open2]
@ = "Open & with Command Prompt"

[HKEY_CLASSES_ROOT \ JSFile \ Shell \ Open2 \ Command]
@ = Hex (2): 25, 00, 53,00, 79,00, 00, 6d, 00, 6f, 00, 6f, 25 ,\
00, 5c, 00, 00, 00, 5c, 53, 00 ,\
,\
, 22, 00, 00, 2a, 00

[HKEY_CLASSES_ROOT \ JSFile \ Shell \ Print]
@ = "& Print"

[HKEY_CLASSES_ROOT \ JSFile \ Shell \ Print \ Command]
@ = Hex (2): 25, 00, 53,00, 79,00, 00, 6d, 00, 6f, 00, 6f, 25 ,\
00, 5c, 00, 00, 6d, 00, 5c, 00, 4e, 00, 6f, 00 ,\
, 00, 00, 2f, 20 ,\
, 25, 00, 00

[HKEY_CLASSES_ROOT \ JSFile \ ShellEx]

[HKEY_CLASSES_ROOT \ JSFile \ ShellEx \ DropHandler]
@ = "{60254CA5-953B-11CF-8C96-00AA00B8708C }"

[HKEY_CLASSES_ROOT \ JSFile \ ShellEx \ PropertySheetHandlers]

[HKEY_CLASSES_ROOT \ JSFile \ ShellEx \ PropertySheetHandlers \ WSHProps]
@ = "{60254CA5-953B-11CF-8C96-00AA00B8708C }"

[HKEY_CLASSES_ROOT \ JScript]
@ = "JScript Language"

[HKEY_CLASSES_ROOT \ JScript \ CLSID]
@ = "{F414c260-6ac0-11cf-b6d1-00aa00bbbb58 }"

[HKEY_CLASSES_ROOT \ JScript \ OLEScript]

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.