Path: utzoo!attcan!uunet!lll-winken!lll-lcc!ames!mailrus!ukma!rutgers!gatech!gitpyr!mlw From: mlw@pyr.gatech.EDU (Michael Williams) Newsgroups: comp.lang.pascal Subject: Re: Chaining TP programs Summary: use 4.0 and exec Message-ID: <7003@pyr.gatech.EDU> Date: 4 Jan 89 19:58:26 GMT References: <13179@cup.portal.com> Reply-To: mlw@pyr.UUCP (Michael Williams) Organization: Georgia Institute of Technology Lines: 12 In Turbo Pascal 3.0 it is possible for one TP program to execute another using the "execute" command. It worked like this: assign(fp, 'myorog.com'); { var fp : file } execute(fp); However, this only worked for TP .com files. In TP4.0/5.0, the "exec" command is much more useful. You simply do "exec(path, commandline)". The command line is optional, and non-turbo programs can be called. Michael Williams