home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.pascal
- Path: sparky!uunet!spool.mu.edu!umn.edu!math.fu-berlin.de!news.uni-stuttgart.de!news.belwue.de!eratu.rz.uni-konstanz.de!nyx.uni-konstanz.de!phfrom
- From: phfrom@nyx.uni-konstanz.de (Hartmut Frommert)
- Subject: Re: Executaing another program in Turbo pascal...How?
- Message-ID: <phfrom.278@nyx.uni-konstanz.de>
- Sender: usenet@eratu.rz.uni-konstanz.de
- Organization: Dept. of Physics, University of Constance
- References: <1992Sep6.131537.16913@access.digex.com>
- Distribution: all
- Date: Thu, 10 Sep 1992 16:32:31 GMT
- Lines: 28
-
- jhurwitz@access.digex.com (j. hurwitz) writes:
- ..
- >Is the Exec procedure supposed to bring up the program you tell it to run?.
-
- >How does the command line receive the string from Turbo that executes the
- >program?.
-
- Look at your reference guide. In TP 6.0 you should enclose the "Exec" call
- in "SwapVectors; Exec(...); SwapVectors;" because TP occupies some interrupt
- vectors. Also you should include the "$M" compiler directive to define a
- maximal heap size, because otherwise TP reserves all RAM for its heap so
- that the prog you call can't be loaded. Moreover, if run in connection with
- Novell networks, you must use versions > 2.01-2 of Novell network.
-
- All that should be sufficient to run a .EXE or .COM file. If you want to run
- a .BAT file, you should pass this as a parameter to COMMAND.COM (or
- "GetEnv('ComSpec')" ), i.e.
- Exec(GetEnv('ComSpec'), '/c MyBat.BAT Parm1 Parm2');
-
- Hope this helps.
- --
-
-
- Hartmut Frommert, Physics, Univ of Constance, | + Whale killing is murder. +
- P.O.Box 55 60, D-W-7750 Konstanz, Germany | + Eat whale killers, not whales.
- E-Mail: <phfrom@nyx.uni-konstanz.de>
- + "Windows NoT" expands in German to "Windows Noch Teurer"
- + ^even ^more expensive
-