Article View: comp.os.msdos.programmer
Article #323Thanks and one more question...
From: Gregory Youngblood
Date: Sat, 08 Aug 1992 13:43
Date: Sat, 08 Aug 1992 13:43
35 lines
2333 bytes
2333 bytes
Thanks to everyone that responded with help to my last question (reading
command line parameters)... I am away from home and don't have my TP
manuals to look things up in like I would like to, and I wanted to say
thanks to everyone...not one RTFM or any other flames...
I have one last question, and then I will have all I need... I am executing
a program from with my program (exec procedure) and then would like to read
the ERRORLEVEL returned by the program ran by exec. I've tried several
things including swapvectors; exec(comsp,comln); erlv :=
getenv('ERRORLEVEL'); swapvectors; where comsp is the COMSPEC and comln is
a command line assigned elsewhere. I realize it may seem stupid this way,
and it doesn't work, but I was grasping at straws trying anything I could
think of. The program run in the exec(comsp,comln) returns an errorlevel of
1 or 0 depending on whether or not the program was successful...
is there a way to read that or am I out of luck on this one.
I'm still out of news access so please reply via email to the MN addresss
below.
Thanks again for any assistance.
P.S. I've gotten ParamStr and ParamCount running smoothly..thanks
Greg
__________________________________________________________________________
! Gregory S. Youngblood ! The opinions expressed above are my own !
! TCS Consulting Services ! and does not mean I'm right or that anyone!
!__________________________! else agrees with me. !
! 42... The only answer. !_____________________________________________!
!________________________________________________________________________!
! zeta@yngbld.gwinnett.com ..!emory!gwinnett.com!yngbld!zeta !
! zeta@yngbld.tfsquad.mn.org ..!tfsquad.mn.org!yngbld!zeta !
! ..!emory!cowpas!yngbld!zeta !
Technical Details
Message-ID:
<Du37oB1w164w@yngbld.tfsquad.mn.org>Path:
arc1-ca.pugleaf.net!sparky!uunet!europa.asd.contel.com!darwin.sura.net!wupost!gumby!destroyer!sol.ctr.columbia.edu!emory!gwinnett!yngbld!zetaShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!europa.asd.contel.com!darwin.sura.net!wupost!gumby!destroyer!sol.ctr.columbia.edu!emory!gwinnett!yngbld!zeta From: zeta@yngbld.tfsquad.mn.org (Gregory Youngblood) Newsgroups: comp.os.msdos.programmer,comp.lang.pascal Subject: Thanks and one more question... Message-ID: <Du37oB1w164w@yngbld.tfsquad.mn.org> Date: 8 Aug 92 13:43:00 GMT Organization: TCS Consulting Services, Peachtree City, GA Lines: 35