Running Batch Files using ASP .NET

  • Thread starter Thread starter Stephen
  • Start date Start date
S

Stephen

Hi all,

I want to create an app that runs a batch file which inturn runs
applications.

question:
if I start the batch file from app1, how can app1 know that the batch file
ran successfully and there was no errors.. (is there a return type)
we run a lot of sql jobs using batch files, so we want to create a user
interface to run batch files

Please advice,
Stephen
 
Stephen,

To start a batch you need to use System.Diagnostics.Process class. It has a
special property ExitCode for communicating return value.

Eliyahu
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top