Re: errorlevel



Don't worry ... all figured out.

Thank you all for your help this year.

I've asked a number of questions from time to time, and have always
received prompt and effective assistance.

Many thanks to all.

Luke.




"Luke Vogel" <not@_real_address> wrote in message
news:eo6y3BwAGHA.976@xxxxxxxxxxxxxxxxxxxxxxx
> Hi Herfried,
>
> I've tried what you suggested ...
>
> The application test shell I've written runs a couple of simple batch
> files to return errorlevels.
>
> These are started as processes, but by the time I query the ExitCode
> property of the process, it throws an exception because the process
has
> already terminated(I assume).
>
> The errormessage suggests that "there is no process associated with
this
> object".
>
> Any ideas?
>
> Luke
>
>
>
>
> "Herfried K. Wagner [MVP]" <hirf-spam-me-here@xxxxxx> wrote in message
> news:%23kVQFxh2FHA.636@xxxxxxxxxxxxxxxxxxxxxxx
> > "Luke Vogel" <not@_real_address> schrieb:
> > > I'm writing a small application that needs to run a number of
> console
> > > executables.
> > >
> > > No problem, I can use the 'shell' function with all its useful
> > > parameters to run each console app.
> > >
> > > My problem is that I need to react to the ERRORLEVEL that is
> returned by
> > > the console executables in each case.
> > >
> > > The shell function returns a processID which is not useful in this
> case.
> >
> > If you are using 'Process.Start' to start the executable you can use
> the
> > 'Process' object's 'ExitCode' property to determine the exit code.
> >
> > --
> > M S Herfried K. Wagner
> > M V P <URL:http://dotnet.mvps.org/>
> > V B <URL:http://classicvb.org/petition/>
> >
>
>


.



Relevant Pages

  • Re: errorlevel
    ... The application test shell I've written runs a couple of simple batch ... files to return errorlevels. ... >> parameters to run each console app. ... >> the console executables in each case. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: errorlevel
    ... >> parameters to run each console app. ... >> the console executables in each case. ... >> The shell function returns a processID which is not useful in this ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Win32 app - console vs. GUI modes
    ... I would suggest you study the format of various executables. ... various formats depending upon the OS & compiler being targeted. ... > separate entry points for both console and GUI modes, ... > a GUI program can create a console window for its own use, ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Login Warning
    ... I need a login warning to display on the same screen ... Will /etc/issue fit your needs on the console login? ... Perhaps on ssh/sftp/scp you can rename the executables, ...
    (RedHat)
  • Re: Get parents console?
    ... still seems to be using two executables - a console exe, ... > I would like to be able to attach a process to the console of the process ... > happens if I compile and link my application as a console application. ...
    (microsoft.public.win32.programmer.kernel)