home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / lang / pascal / 6393 < prev    next >
Encoding:
Internet Message Format  |  1992-11-08  |  1.2 KB

  1. Path: sparky!uunet!news.tek.com!psgrain!hippo!catpe!f54.n7101.z5.fidonet.org!Ashley.Kleynhans
  2. From: Ashley.Kleynhans@f54.n7101.z5.fidonet.org (Ashley Kleynhans)
  3. Sender: ufgate@catpe.alt.za (newsout1.26)
  4. Newsgroups: comp.lang.pascal
  5. Subject: DosExitCode bug ???
  6. Message-ID: <2782.2AFC1B66@catpe.alt.za>
  7. Date: Fri, 06 Nov 92 00:55:01 GMT
  8. Organization: FidoNet node 5:7101/54 - Depths of Insanity, Alberton
  9. Lines: 18
  10.  
  11. Hi!
  12.  
  13. I don't think it is a bug... I think that it is just for some reason 
  14. that when COMMAND.COM is run in a shell is does not return the 
  15. correct DosExitCode... if you run it normally without calling 
  16. COMMAND.COM, I have found that it gives the correct DosExitCode, but 
  17. this method does not work too well... the only alternative that I 
  18. had was to make my program create a batch file, then shell to the 
  19. batch file to read the DOS errorlevel for my program to be able to 
  20. work correctly... If you find another solution or know of an easier 
  21. way please let me know about it!
  22.  
  23. Thanks a million!
  24. Cheers!
  25. --  
  26. INTERNET: Ashley.Kleynhans@f54.n7101.z5.fidonet.org
  27. via:  THE CATALYST BBS in Port Elizabeth, South Africa.
  28.        (catpe.alt.za)   +27-41-34-1122 HST or +27-41-34-2859, V32bis & HST.
  29.