home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.pascal
- Path: sparky!uunet!gatech!nntp.msstate.edu!Ra.MsState.Edu!dab3
- From: dab3@Ra.MsState.Edu (David A. Besancon)
- Subject: Re: can't get EXEC to work
- Message-ID: <1992Sep10.064707.16903@ra.msstate.edu>
- Sender: news@ra.msstate.edu
- Nntp-Posting-Host: ra.msstate.edu
- Organization: Mississippi State University
- References: <2096.2AAB9E17@catpe.alt.za>
- Date: Thu, 10 Sep 1992 06:47:07 GMT
- Lines: 26
-
-
- There are a few errors in your logic...
-
- the following should work...
-
- { $m 4000,0,0 } <-- notice the compiler directive.
- {^^^^^^^^^^^^^^--- tells the compiler to reserve 16k of stack, and no heap}
-
- program test;
- uses DOS;
- var
- pname, cmdline : string;
- begin
- write ('enter the name of the program to exec.. ');
- readln (pname);
- write ('and the command line arg... ');
- readln (cmdline);
- Swapvectors; <--- this is definately a good idesa to run
- exec(pname,cmdline);
- Swapvectors; <--- and again after the program call
- end.
-
- signed
-
- david besancon--- dab3@ra.msstate.edu
-
-