1

The script is used to enable or disable LAN. I would like to run it from a VB application by integrating it. Could someone help please?

2
  • sry about that im using visual basic 2010 Commented May 16, 2010 at 17:57
  • 2
    Even in 2010 there are still at least 3 active VB dialects - VBScript (mostly found in webpages or .vb script files), VB.NET (developed from Visual Studio) and VBA (integrated in MS Office). Do you mean VB.NET? Commented May 16, 2010 at 18:56

2 Answers 2

1

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)
Sign up to request clarification or add additional context in comments.

Comments

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.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.