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

return value from main to application invoker

P: n/a
Dan
hi ng,

i want to give the invoker of my application information whether
application has passed successfully.
it shall get scheduled, and if the exeution did not pass, it should be
repeated some minutes later.
may i use the static int Main return value?
if that was the solution, so how do i provide that value?
i have invoked the app from dos cmd, but nothing has been returned, or
at least printed on the screen.

thanks for your help,
dan
Nov 16 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hi Dan,
may i use the static int Main return value?
Yes, you should use this one.
if that was the solution, so how do i provide that value?
i have invoked the app from dos cmd, but nothing has been returned, or at
least printed on the screen.
This value is stored to the %ERRORLEVEL% environment variable. Write the
following CMD file to test it:

@MyApp.exe
@ECHO %ERRORLEVEL%

--
Sincerely,
Dmitriy Lapshin [C# / .NET MVP]
Bring the power of unit testing to the VS .NET IDE today!
http://www.x-unity.net/teststudio.aspx

"Dan" <da**********@zdv.uni-tuebingen.de> wrote in message
news:co**********@newsserv.zdv.uni-tuebingen.de... hi ng,

i want to give the invoker of my application information whether
application has passed successfully.
it shall get scheduled, and if the exeution did not pass, it should be
repeated some minutes later.
may i use the static int Main return value?
if that was the solution, so how do i provide that value?
i have invoked the app from dos cmd, but nothing has been returned, or at
least printed on the screen.

thanks for your help,
dan


Nov 16 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.