Unable to find script *. Scripting engine workaround for VBS
When you run some files that are based on the VBS scripting language, the system may error. It may be that your VBS scripting service has made an error in the registry, possibly due to a program that uninstalls or installs some code that is not canonical. Here's a workaround for the scripting engine "VBScript" cannot be found:
Copy the following code to save as "VBS Association fix. Reg" and double click to run.
The reason is that the VBS file is not properly associated, to establish an association, there are three main places to modify.
Windows Registry Editor Version 5.00
[Hkey_classes_root\.vbs]
@= "Vbsfile"
[Hkey_classes_root\.vbs\persistenthandler]
@= "{5e941d80-bf96-11cd-b579-08002b30bfeb}"
[Hkey_classes_root\vbsfile]
@= "VBScript 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,32,00,00,00
[Hkey_classes_root\vbsfile\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,32,00,00,00
[Hkey_classes_root\vbsfile\scriptengine]
@= "VBScript"
[Hkey_classes_root\vbsfile\scripthostencode]
@= "{85131631-480c-11d2-b1f9-00c04f86c324}"
[Hkey_classes_root\vbsfile\shell]
[Hkey_classes_root\vbsfile\shell\edit]
@= "edit (&e)"
[Hkey_classes_root\vbsfile\shell\edit\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,25,00,31,00,00,\
00
[Hkey_classes_root\vbsfile\shell\open]
@= "Open (&o)"
[Hkey_classes_root\vbsfile\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\vbsfile\shell\open2]
@= "Open at command prompt (&w)"
[Hkey_classes_root\vbsfile\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\vbsfile\shell\print]
@= "Printing (&p)"
[Hkey_classes_root\vbsfile\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\vbsfile\shellex]
[Hkey_classes_root\vbsfile\shellex\drophandler]
@= "{60254ca5-953b-11cf-8c96-00aa00b8708c}"
[Hkey_classes_root\vbsfile\shellex\propertysheethandlers]
[Hkey_classes_root\vbsfile\shellex\propertysheethandlers\wshprops]
@= "{60254ca5-953b-11cf-8c96-00aa00b8708c}"
It is also possible that the dynamic link library is not registered, this possibility is very small. With the following batch processing: "Registration Vbscript.bat"
regsvr32%systemroot%\system32\vbscript.dll
regsvr32 scrrun.dll
regsvr32 cscript.dll
regsvr32 wshom.ocx
regsvr32 wshext.dll
"VBS test. vbs" can run this to prove OK!
MsgBox "Hello world!"
Unable to find script *. Scripting engine workaround for VBS