home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / lang / pascal / 5211 < prev    next >
Encoding:
Text File  |  1992-09-07  |  1.9 KB  |  50 lines

  1. Newsgroups: comp.lang.pascal
  2. Path: sparky!uunet!uchdcc!egodoy
  3. From: egodoy@dcc.uchile.cl (GODOY VEGA EDUARDO SALVADOR)
  4. Subject: Re: can't get EXEC to work
  5. Originator: egodoy@dcc.uchile.cl
  6. Sender: usenet@dcc.uchile.cl (Network News)
  7. Message-ID: <1992Sep05.143158.6276@dcc.uchile.cl>
  8. Date: Sat, 05 Sep 1992 14:31:58 GMT
  9. References: <la5469INNgd2@langtry.cs.utexas.edu> <1992Sep2.182522.19@apap4>
  10. Organization: Universidad de Chile, Depto. de Ciencias de la Computacion
  11. Lines: 38
  12.  
  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.  
  39.  
  40. -- 
  41. +---------------------------------------------------------------------------+
  42. |  egodoy@dcc.uchile.cl                 | Ingenieria Civil Computacion      |
  43. |  Eduardo Godoy Vega                   | U. de Chile.                      | 
  44. +---------------------------------------------------------------------------+
  45. -- 
  46. +---------------------------------------------------------------------------+
  47. |  egodoy@dcc.uchile.cl                 | Ingenieria Civil Computacion      |
  48. |  Eduardo Godoy Vega                   | U. de Chile.                      | 
  49. +---------------------------------------------------------------------------+
  50.