Get the App
SLTechnology News&Howtos  ›  Development  › 

How to solve the problems encountered in the inability to execute vbs scripts

Shulou Source: shulou.com Published: 2022-06-03 13:06:44 11月14日 Update

How to solve the problems encountered in the execution of vbs scripts, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain in detail for you, people with this need can come to learn, I hope you can get something.

Some netizens reported that they could not execute vbs files. In general, many bad children write viruses in vbs, so sometimes antivirus will mistakenly kill or cancel the execution of vbs files.

1. There is no script engine for file extension ".vbs".

Reason: some software will change the default way to open ".vbs" files to other ways.

Resolve manually:

① first go to% SYSTEMROOT%/system32/ to confirm whether your wscript.exe is there. If not, copy from other computers and OK.

② registry regedit finds .VBS under HKEY_CLASSES_ROOT, looks at the default value, and changes to the default VBSFile.

③ OK . Start all over again.

two。 Rerun, popping up cannot create an object named "WScript.Shell".

Solution, run the command:

Regsvr32 c:\ WINDOWS\ system32\ shell32.dll

Regsvr32 c:\ WINDOWS\ system32\ WSHom.Ocx

Regsvr32 c:\ WINDOWS\ system32\ scrrun.dll

If you are prompted which dll or ocx is missing, download it online or copy it on another computer.

OK . It runs successfully.

Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.

Tags: File run script way computer help problem clear success content reason command child this object engine situation manual article novice Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi Apple OPPO Reno MySQL NVidia