I have the following code:
String Antcbatchpath = @"C:\GUI\antc.bat";
System.Diagnostics.Process runantc = new System.Diagnostics.Process();
runantc.StartInfo.FileName = Antcbatchpath;
runantc.StartInfo.UseShellExecute = false;
runantc.StartInfo.RedirectStandardOutput = true;
runantc.StartInfo.RedirectStandardError = true;
runantc.Start();
Will this load the batch file from C:\GUI\antc.bat
?
Or runantc.StartInfo.FileName
is only for a root directory? Root directory is where the application is located
EDIT 1:
hi instead of @"C:\GUI\antc.bat" i have a path:
String Antcbatchpath =@"C:\GUI Lab Tools\Build Machine\antc.bat";
which essentially contains white spaces. will it affect the runantc.StartInfo.Filename = Antcbatchpath;
?