When you attempt to run a .js (JScript Script File) file, one of the following errors may occur:
Can't find script engine "JScript" for script "filename.js".
There is no script engine for file extension ".js".
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.
regsvr32 %systemroot%\system32\jscript.dll
Instructions for Windows XP
regsvr32 %systemroot%\system32\jscript.dll
If the above does not solve the problem, then download and install Windows Script 5.7 from the following Microsoft Web site: