You'd pass them on the commandline, using the StartInfo property of the Process object.
You'd fill out a ProcessStartInfo object (it has an Arguments property where you'd add your parameters), then set it to the StartInfo property on the Process object, then call Start.
Chip H.
____________________________________________________________________ If you want to get the best response to a question, please read FAQ222-2244 first
Dim proc As New Process
' Provide the name of the application or file.
proc.StartInfo.FileName = "C:\usr\print-arg.plx"
' Specify the arguments.
Dim myVar As String = "From VB.NET to PERL. THIS IS SO COOL!"
' we can set this to text box input from form
proc.StartInfo.Arguments = myVar
' Start the process.
proc.Start()
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.