湛蓝之海 发表于 2022-9-10 11:16:57

输入错误:没有文件扩展.vbs的脚本引擎解决方法(图)

在电脑上运行一些软件,激活工具什么的会出现“输入错误:没有文件扩展.vbs的脚本引擎”错误提示,主要是由于系统中.vbs脚本的系统关联被破坏了,二是系统上安装了第三方记事本(文本编辑器等)软件,将系统自带的.vbs关联取代了,所以软件中的VBS无法解析。

两个解决方法:
解决方法一、恢复系统的.vbs关联
1、打开CMD命令提示符(管理员)2、在命令提示符中以此执行以下命令:
regsvr32 %systemroot%\system32\vbscript.dll
regsvr32 scrrun.dll
regsvr32 cscript.dll
regsvr32 wshom.ocx
regsvr32 wshext.dll
解决方法二、修改注册系统组件来修复.vbs关联
1、复制以下代码到记事本(文本文档)中;
Windows Registry Editor Version 5.00



@="vbsfile"


@="{5e941d80-bf96-11cd-b579-08002b30bfeb}"

@="VBScript Script 文件"
"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,32,00,00,00


@=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,32,00,00,00


@="VBScript"


@="{85131631-480C-11D2-B1F9-00C04F86C324}"




@="编辑(&E)"


@=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,25,00,31,00,00,\
00
;www.191e.com


@="打开(&O)"


@=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


@="在命令提示符中打开(&W)"


@=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


@="打印(&P)"


@=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




@="{60254CA5-953B-11CF-8C96-00AA00B8708C}"




@="{60254CA5-953B-11CF-8C96-00AA00B8708C}"2、另存为VBS修复.reg文件或是保存后修改后缀为reg文件。
3、双击导入注册表修复。过以上两个方法就可以完美修复软件打开后出现:输入错误:没有文件扩展.vbs的脚本引擎报错的问题了。

https://www.191e.com/pc/23072.html
页: [1]
查看完整版本: 输入错误:没有文件扩展.vbs的脚本引擎解决方法(图)