开发者

How do I run visual basic script from visual basic?

The script is used to enable or disable LAN. I would like to run it from a VB applica开发者_如何学JAVAtion by integrating it. Could someone help please?


Try this, assuming VB6 since you didn't tag it as VB.NET

Dim wsh
wsh = CreateObject("WScript.Shell")
wsh.run("C:\Scripts\test.vbs", 1, 0)


VBScript is (almost) a subset of VB.

You can copy your VBScript code directly into the VB source.

If you have any trouble, please ask a specific question.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜