By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,180 Members | 1,016 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,180 IT Pros & Developers. It's quick & easy.

Running Batch Files using ASP .NET

P: n/a
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
Dec 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Stephen,

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

Eliyahu

"Stephen" <st********@hotmail.com> wrote in message
news:es*****************@TK2MSFTNGP10.phx.gbl...
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

Dec 22 '05 #2

P: n/a
Thanks Eliyahu,
did use the process class... will check the exitcode method.
stephen

"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message
news:Ou**************@tk2msftngp13.phx.gbl...
Stephen,

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

Eliyahu

"Stephen" <st********@hotmail.com> wrote in message
news:es*****************@TK2MSFTNGP10.phx.gbl...
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


Dec 22 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.