VBS script ERROR: Workaround for file name or class name not found in operation _vbs

Source: Internet
Author: User
Yesterday afternoon was free, and then turned out the previous script, try to run, the results appear as shown in the error.



So: regsvr32 vbscript.dll.

Rerun the script and didn't expect it to be the same. It's normal to put it on another computer. Strange, and recently did not how to toss this system, Baidu, Google for a while, there is no answer.

In the afternoon to eat, set fire to the wall a bit of the situation, open the firewall log to see the next, inadvertently targeted the "D:\DATA\VBS\GetWanIP.vbs" words, it seems that there is a prospect.

It turned out that the firewall blocked the network access to the script! Add a rule. The script is running correctly.

Getwanip.vbs is ubiquitous on the Code network:

Copy Code code as follows:

Set getip=wscript.getobject ("http://www.ip138.com/ip2city.asp")
Do Until getip.readystate= "complete"
Wscript.Sleep 100
Loop
WScript.Echo GetIP.documentElement.outerText
Set getip=nothing


Source: http://www.enun.net/?p=1433

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.