home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / lang / pascal / 5129 < prev    next >
Encoding:
Internet Message Format  |  1992-08-31  |  893 b 

  1. Path: sparky!uunet!dtix!darwin.sura.net!jvnc.net!yale.edu!qt.cs.utexas.edu!cs.utexas.edu!news
  2. From: joel@cs.utexas.edu (Joel Daniel Just)
  3. Newsgroups: comp.lang.pascal
  4. Subject: can't get EXEC to work
  5. Keywords: EXEC
  6. Message-ID: <la5469INNgd2@langtry.cs.utexas.edu>
  7. Date: 31 Aug 92 21:36:09 GMT
  8. Organization: CS Dept, University of Texas at Austin
  9. Lines: 16
  10. NNTP-Posting-Host: langtry.cs.utexas.edu
  11.  
  12. I am having trouble getting the EXEC command to work in Turbo Pascal v5.0 on
  13. the PC.  Here is an example program:
  14.  
  15. PROGRAM TEST;
  16. USES DOS;
  17. BEGIN
  18.    EXEC('dir','');
  19.    WRITELN('DONE')
  20. END.
  21.  
  22. When I run this program, 'DONE' is printed, and nothing else happens.  The
  23. EXEC command doesn't seem to be executed, no matter what I put in between the
  24. two sets of quotes in the EXEC call.  Even if I put garbage between the
  25. quotes, I don't get an error.  I just get 'DONE' and that's it.
  26.  
  27. Any suggestions?
  28.