Running Batch Files using ASP .NET

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
 
E

Eliyahu Goldin

Stephen,

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

Eliyahu
 
S

Stephen

Thanks Eliyahu,
did use the process class... will check the exitcode method.
stephen
 

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

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top