home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!dtix!darwin.sura.net!jvnc.net!yale.edu!qt.cs.utexas.edu!cs.utexas.edu!news
- From: joel@cs.utexas.edu (Joel Daniel Just)
- Newsgroups: comp.lang.pascal
- Subject: can't get EXEC to work
- Keywords: EXEC
- Message-ID: <la5469INNgd2@langtry.cs.utexas.edu>
- Date: 31 Aug 92 21:36:09 GMT
- Organization: CS Dept, University of Texas at Austin
- Lines: 16
- NNTP-Posting-Host: langtry.cs.utexas.edu
-
- I am having trouble getting the EXEC command to work in Turbo Pascal v5.0 on
- the PC. Here is an example program:
-
- PROGRAM TEST;
- USES DOS;
- BEGIN
- EXEC('dir','');
- WRITELN('DONE')
- END.
-
- When I run this program, 'DONE' is printed, and nothing else happens. The
- EXEC command doesn't seem to be executed, no matter what I put in between the
- two sets of quotes in the EXEC call. Even if I put garbage between the
- quotes, I don't get an error. I just get 'DONE' and that's it.
-
- Any suggestions?
-