in reply to Re: Calling perl in C#
in thread Calling perl in C#
So I was goofing around with my second example and I noticed there was some text but the terminal was closing so fast I couldn't tell. So I spent five minutes clicking my asp.net button to execute the perl script and then trying to capture a screenshot of the terminal being open and I finally got it.
This
perlStart.Arguments = "Z:\location\test.pl" + argument1 + argument2;Needs to be changed to this.
perlStart.Arguments = "Z:\location\test.pl" + " " + argument1 + " " + argument2;It was looking for a perl file called Z:\location\test.plwhateverthefirstargumentwaswhateverthesecondargumentwas
It now created the folders and works flawlessly.
|
|---|