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]
  • 相关阅读:
    PhoneGap 的文件 api
    81-POJ-Wall(计算几何)
    12-凸包模板-计算几何
    80-计算几何-奶牛
    79-多边形的面积-计算几何
    78-直线相交-计算几何
    11-欧拉函数详解
    76-Relatives-欧拉函数
    29-中国剩余定理CRT
    2018.3.12 Leecode习题 给定一个整数数列,找出其中和为特定值的那两个数。
  • 原文地址:https://www.cnblogs.com/tuzhiye/p/1366727.html
Copyright © 2011-2022 走看看