home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!rutgers!concert!fletcher!snodgras
- From: snodgras@cs.unca.edu (Ryan Snodgrass)
- Newsgroups: comp.lang.pascal
- Subject: Re: can't get EXEC to work
- Message-ID: <1992Sep5.161610.27659@cs.unca.edu>
- Date: 5 Sep 92 16:16:10 GMT
- References: <la5469INNgd2@langtry.cs.utexas.edu> <1992Sep2.182522.19@apap4> <1992Sep05.143158.6276@dcc.uchile.cl>
- Sender: news@cs.unca.edu (Usenet News Adm)
- Organization: University of North Carolina at Asheville
- Lines: 34
-
- In article <1992Sep05.143158.6276@dcc.uchile.cl> egodoy@dcc.uchile.cl (GODOY VEGA EDUARDO SALVADOR) writes:
- >
- >In article <1992Sep2.182522.19@apap4>, roesel@apap4.pap.univie.ac.at writes:
- >>In article <la5469INNgd2@langtry.cs.utexas.edu>, joel@cs.utexas.edu (Joel Daniel Just) writes:
- >>> 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.
- >>>
- >>>
- >>
- >One of most common error is that EXEC need to work in the same directory that
- >command.com ... if EXEC can't find these archive then don't work.!
- >Ok.
- >Maybe it will be useful !.
-
- Try adding more stack size, and having no heap by adding the following line
- to the beginning of your program (before the PROGRAM statement):
-
- {$M $4000,0,0} {16k stack, no heap}
-
-
-
- Ryan
-