zoukankan      html  css  js  c++  java
  • There is no script engine for file extension ".js"

    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内容

    Windows Registry Editor Version 5.00

    ;.JS file type association fix - Windows XP
    ;Author : Ramesh Srinivasan
    ;Created : Aug 30, 2007
    ;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):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,\
    00,6f,00,6f,00,74,00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,\
    32,00,5c,00,77,00,73,00,68,00,65,00,78,00,74,00,2e,00,64,00,6c,00,6c,00,2c,\
    00,2d,00,34,00,38,00,30,00,34,00,00,00

    [HKEY_CLASSES_ROOT\JSFile\DefaultIcon]
    @=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
    00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,57,00,53,00,\
    63,00,72,00,69,00,70,00,74,00,2e,00,65,00,78,00,65,00,2c,00,33,00,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,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
    00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,57,00,53,00,\
    63,00,72,00,69,00,70,00,74,00,2e,00,65,00,78,00,65,00,20,00,22,00,25,00,31,\
    00,22,00,20,00,25,00,2a,00,00,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,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
    00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,43,00,53,00,\
    63,00,72,00,69,00,70,00,74,00,2e,00,65,00,78,00,65,00,20,00,22,00,25,00,31,\
    00,22,00,20,00,25,00,2a,00,00,00

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

    [HKEY_CLASSES_ROOT\JSFile\Shell\Print\Command]
    @=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
    00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,4e,00,6f,00,\
    74,00,65,00,70,00,61,00,64,00,2e,00,65,00,78,00,65,00,20,00,2f,00,70,00,20,\
    00,25,00,31,00,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]
  • 相关阅读:
    201771010111 李瑞红 《第十二周学习总结》
    201771010111李瑞红《第十一周学习总结》
    李瑞红201771010111第十周 学习总结
    李瑞红201771010111《第九周学习总结》
    201771010111李瑞红《面向对象的程序设计》第八周实验总结
    2017710101111李瑞红《第七周学习总结》
    李瑞红201771010111《第六周学习总结》
    李瑞红201771010111《面向对象程序设计(java)》第四周学习总结
    201771010113 李婷华《面向对象程序设计(Java)》第十二周总结
    201771010113 李婷华 《面向对象程序设计(Java)》第十一周总结
  • 原文地址:https://www.cnblogs.com/tuzhiye/p/1366727.html
Copyright © 2011-2022 走看看