Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I pass arguments/variables in VB.NET to PERL?

Status
Not open for further replies.

dmoonme

MIS
Jul 21, 2004
33
0
0
US
How can I pass arguments/variables in VB.NET to PERL?
I can start my PERL program with process.start method but I need to pass something to it.
 
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
 
Thanks for the tip Chip.

here's how I accomplished it.

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()
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top