G
Guest
Hello Guys:
How would I be able to check if a .bat file I call had an error associated
with it? I have the following code to shell out to a batch file. However:
if an error occured: how would I be able to trap for this error? Is it as
simple as a try...catch? I have been uncessful in my attempts.
System.Diagnostics.Process process = new System.Diagnostics.Process();
process.StartInfo.FileName = "uploadin.bat"
process.Start();
Thanks
Andy
How would I be able to check if a .bat file I call had an error associated
with it? I have the following code to shell out to a batch file. However:
if an error occured: how would I be able to trap for this error? Is it as
simple as a try...catch? I have been uncessful in my attempts.
System.Diagnostics.Process process = new System.Diagnostics.Process();
process.StartInfo.FileName = "uploadin.bat"
process.Start();
Thanks
Andy