Note Because there are several versions of Microsoft Windows, the following steps may be different on your computer. If they are, see your product documentation to complete these steps.
To resolve this problem, you must reregister the following files:
- Msscript.ocx
- Dispex.dll
- Vbscript.dll
- Scrrun.dll
After you reregister the files, you must then make sure that files with the JS file name extension are correctly associated with a program. To do this, follow these steps:
- Click Start, and then click Run.
- In the Open box, type regsvr32 msscript.ocx, and then click OK.
- Repeat step 2 with the following commands:
- regsvr32 dispex.dll
- regsvr32 vbscript.dll
- regsvr32 scrrun.dll
- Click Start, click Control Panel, click Appearance and Themes, click Folder Options, and then click the File Types tab.
- In the Registered File Types list, click the JS extension, click Advanced, and then click Edit.
- In the Application to perform action box, type the following command depending on your operating system.
- For Microsoft Windows XP, type:
C:\WINDOWS\System32\WScript.exe "%1" %*
- For Microsoft Windows 2000, type:
C:\Winnt\System32\WScript.exe "%1" %*
- For Microsoft Windows 98 and Microsoft Windows Millennium Edition, type:
C:\WINDOWS\System\WScript.exe "%1"%*