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.
精彩评论