Windows 7 disabled script host??

自从装了windows 7, 就没有成功用过我写的windows script. 一些控制iTunes的js. 今天终于忍不住了, 网上搜了一番, 发现一个解决办法,

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

基本思想是, 由于js文件在注册表里缺失了相应的class, 于是windows不知道该如何处理js这个文件. 不知道是不是windows 7出于安全的考虑, 禁止了.

解决办法是,

1. 用管理员模式运行  regsvr32 %systemroot%\system32\jscript.dll
2. 下载这个注册表文件, 并运行.

即可.

Related Post

No comments yet. Be the first.