Re: File handling

new topic     » goto parent     » topic index » view thread      » older message » newer message

At 06:44 AM 6/7/98 -0500, Terry Constant wrote:

>Its been so long since I worked with Command.com, I can't remember if
>there is a way to get exit code info on internal commands. If not there
>would only be one atom.
>
There must be a way. Batch files can branch based on errorlevel.
Also there is interrupt 4Dh that reads the errorlevel returned
on a program exit (I think. Anybody want to wade thru the dos-ref
and find out for sure?)

>In any case, the return sequence would have information about success or
>failure that could be analyzed.
>
Someone made a suggestion to Rob that system() be made a function,
rather than a procedure, for exactly that purpose. I hope he
sees fit to change it.

Irv

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu