Pass Parms to script via Process class

  • Thread starter Thread starter Billy TheKid via .NET 247
  • Start date 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!
 
Hi,

Set the ShellProcess.StartInfo.Arguments to the parameters.

Hope this helps
 
Back
Top