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.
In reply to Re^2: Calling perl in C#
by joemaniaci
in thread Calling perl in C#
by joemaniaci
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |