Pass Parms to script via Process class

  • Thread starter Billy TheKid via .NET 247
  • Start date
B

Billy TheKid via .NET 247

Using the Process class I need to pass some parameters to the .vbs file i am Starting

Code so far

Dim ShellProcess as new Process

ShellProcess.StartInfo.FileName = strVBS
ShellProcess.StartInfo.UseShellExecute = True
ShellProcess.Start()

how do I pass parameters to the Start method?

Many thanks!
 
C

Chris Taylor

Hi,

Set the ShellProcess.StartInfo.Arguments to the parameters.

Hope this helps
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top