The Process and ProcessStartInfo expect that arguments and application to be seperate.
I would do args like such though.
string arg1 = @"C:\Documents and Settings\jmatrone\Desktop\
string arg2 = @"C:\Documents and Settings\jmatrone\Desktop\
string args = "\"" + arg1 + "\" \"" + arg2 + "\"";
This should ensure that they get treated as 2 arguments rather then getting accidently split on the space chars in document and settings. When in doubt can always make a quick console application and pipe your date into it to verify the call is going out correctly.
Main Topics
Browse All Topics





by: kaufmedPosted on 2009-10-19 at 11:39:33ID: 25607806
Try passing the arguments to your batch file in the following manner:
Select allOpen in new window