开发者

How do I run visual basic script from visual basic?

开发者 https://www.devze.com 2022-12-30 05:43 出处:网络
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 a

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

精彩评论

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