home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / lang / pascal / 5212 < prev    next >
Encoding:
Internet Message Format  |  1992-09-07  |  1.6 KB

  1. Path: sparky!uunet!cs.utexas.edu!rutgers!concert!fletcher!snodgras
  2. From: snodgras@cs.unca.edu (Ryan Snodgrass)
  3. Newsgroups: comp.lang.pascal
  4. Subject: Re: can't get EXEC to work
  5. Message-ID: <1992Sep5.161610.27659@cs.unca.edu>
  6. Date: 5 Sep 92 16:16:10 GMT
  7. References: <la5469INNgd2@langtry.cs.utexas.edu> <1992Sep2.182522.19@apap4> <1992Sep05.143158.6276@dcc.uchile.cl>
  8. Sender: news@cs.unca.edu (Usenet News Adm)
  9. Organization: University of North Carolina at Asheville
  10. Lines: 34
  11.  
  12. In article <1992Sep05.143158.6276@dcc.uchile.cl> egodoy@dcc.uchile.cl (GODOY VEGA EDUARDO SALVADOR) writes:
  13. >
  14. >In article <1992Sep2.182522.19@apap4>, roesel@apap4.pap.univie.ac.at writes:
  15. >>In article <la5469INNgd2@langtry.cs.utexas.edu>, joel@cs.utexas.edu (Joel Daniel Just) writes:
  16. >>> I am having trouble getting the EXEC command to work in Turbo Pascal v5.0 on
  17. >>> the PC.  Here is an example program:
  18. >>> 
  19. >>> PROGRAM TEST;
  20. >>> USES DOS;
  21. >>> BEGIN
  22. >>>    EXEC('dir','');
  23. >>>    WRITELN('DONE')
  24. >>> END.
  25. >>> 
  26. >>> When I run this program, 'DONE' is printed, and nothing else happens.  The
  27. >>> EXEC command doesn't seem to be executed, no matter what I put in between the
  28. >>> two sets of quotes in the EXEC call.  Even if I put garbage between the
  29. >>> quotes, I don't get an error.  I just get 'DONE' and that's it.
  30. >>> 
  31. >>>
  32. >>
  33. >One of most common error is that EXEC need to work in the same directory that
  34. >command.com ... if EXEC can't find these archive then don't work.!
  35. >Ok.
  36. >Maybe it will be useful !.
  37.  
  38. Try adding more stack size, and having no heap by adding the following line
  39. to the beginning of your program (before the PROGRAM statement):
  40.  
  41. {$M $4000,0,0}   {16k stack, no heap}
  42.  
  43.  
  44.  
  45. Ryan
  46.