Path: utzoo!mnetor!uunet!husc6!yale!cmcl2!brl-adm!adm!jc58+@andrew.cmu.EDU From: jc58+@andrew.cmu.EDU (Johnny J. Chin) Newsgroups: comp.lang.pascal Subject: Re: Two subj- TP4 books, and the missing Execute procedure Message-ID: <11946@brl-adm.ARPA> Date: 23 Feb 88 05:55:43 GMT Sender: news@brl-adm.ARPA Lines: 23 Turbo Pascal v4.0 has an Exec Procedure which allows you to do this with no problems at all. You should be able to execute any DOS command-line command or program with this procedure. I have used this procedure to run CHKDSK on my disks and it works fine. Its documented in then manual. Unfortunately, I don't have it here at this moment to tell you which pages but I think you could find, it. By the way, it takes two paramters, one is the path and command to execute, the other is the parameter to be passed. I hope this helps. -- Johnny +-------------------------------------------------------------------------+ | Johnny J. Chin Carnegie Mellon University | +----------------------------------+--------------------------------------+ | US Mail: Johnny J. Chin | ARPAnet: Johnny.Chin@andrew.cmu.edu | | 4730 Centre Avenue #412 | BITnet: jc58%andrew@cmccvb.BITNET | | Pittsburgh, PA 15213 | UUCP: harvard!andrew.cmu.edu!jc58 | +----------------------------------+--------------------------------------+ | Disclaimer: The views expressed herein are STRICTLY my own. | +-------------------------------------------------------------------------+