Cannot get Process.Start to function.

  • Thread starter Thread starter Hal Meyer
  • Start date Start date
H

Hal Meyer

Greetings. I am trying to simply have a batch file run on the server from an
ASP.NET webform. I had started out with a rather full-figured
implementation, using properties to add arguments, redirect output, etc...
however, even when reduced to the simplest form:

System.Diagnostics.Process.Start("C:\\testing.bat");

Absolutely nothing happens whatsoever. No error, nothing. Am I, a
self-professed C# noob, missing something obvious here? TIA..

Hal Meyer
 
What does testing.bat do? Do you see the results of whatever it does (copy a
file, etc)?

What do you expect to happen that does not?
 
Hi Hal:

You could be getting an access denied message. Check the OutputStream
of the process.
 
Back
Top