What if the vbs script file cannot be run?

Source: Internet
Author: User

When you are running some files based on vbs script language, the system may report an error. At this time, it may be because your vbs script Service has an error in the registry, which may be caused by uninstalling or installing some programs with nonstandard code. Here is a solution to the failure to find the script engine "VBScript:
1) find the file c: \ windows \ INF \ wsh. inf and right-click "Install ";
2) Start → run the line Input: regsvr32 urlmon. dll shdocvw. dll jscript. dll VBScript. dll/s
What is wsh?
Wsh is the scaling form of Windows Scripting host (Windows Script Host. Wsh was first introduced in the Windows 98 operating system and is a language-independent script running environment based on a 32-bit Windows platform. For example, you have compiled a script file, such as the suffix. vbs or. JS file, and then double-click and execute it in windows. Then, the system will automatically call an appropriate program to explain and execute it, and this program, it is Windows Scripting host, and the program execution file name is wscript.exe (cscript.exe if it is at the DOS command prompt ).
Do you want to know if wsh is available on your machine? If your machine does not contain the wscipt.exe000000000000cscript.exe files, you can. If you find it, congratulations! You have installed wsh. Otherwise, install it manually:
In Windows 98, wsh is automatically installed as a component of the operating system. If this component is accidentally lost, you can open "control panel --> Add/delete procedure --> Windows Installer --> attachment" in sequence, and then forward "√" before "Windows Scripting Host ", then confirm the installation of the wsh component.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.