🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.modula2
Article #1510

Re: executing from within a modula-program

#1510
From: Andries Dippenaar
Date: Thu, 12 Nov 1992 10:12
25 lines
1886 bytes
Mark A. Morrell (mgmam@uxa.ecn.bgu.edu) wrote:
:  > I use Topspeed modula 3.1 and had a problem in my last program. Does
:  > anyone know how Ii can execute another program from a modula program so
: 
: This is a procedure which stuffs a character into the keyboard buffer,
: and may be of use to you.  Stuff the buffer, then exit your program.
: 
  [stuff deleted]

That's not one of the better ways of doing it.  TopSpeed supplies an
Execute procedure in Lib if I remember correctly.  They've actuallt
got two flavours, Execute and ExecuteCmd.  The former can only be used
to execute binaries (ie. .COM or .EXE files) and the latter is passed
a complete DOS commandline (like C's system command) which is then
executed under COMMAND.COM (actually %COMSPEC) so that you can also
run batch files.  The easiest way to locate it in the libaries is to
type it in the editor, put the cursor over it and hit F1.

Andries
***********************************************************************
*       /|~~\ * APJ Dippenaar        * "If you wanna make the world a *
*     /__|__/ * apj@beldin.sun.ac.za *  better place, take a look at  *
*   /    |    * Univ of Stellenbosch *  yourself and make a change."  *
* /   \__|    * South Africa         *             -- Michael Jackson *
***********************************************************************
Technical Details
Message-ID: <1992Nov12.101226.10318@hippo.ru.ac.za>
Path: arc1-ca.pugleaf.net!sparky!uunet!europa.asd.contel.com!emory!ogicse!psgrain!hippo!apj
References: <BxJ2rn.Du4@uxa.ecn.bgu.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!europa.asd.contel.com!emory!ogicse!psgrain!hippo!apj
From: apj@beldin.sun.ac.za (Andries Dippenaar)
Newsgroups: comp.lang.modula2
Subject: Re: executing from within a modula-program
Message-ID: <1992Nov12.101226.10318@hippo.ru.ac.za>
Date: 12 Nov 92 10:12:26 GMT
Article-I.D.: hippo.1992Nov12.101226.10318
References: <BxJ2rn.Du4@uxa.ecn.bgu.edu>
Sender: news@hippo.ru.ac.za
Organization: Rhodes University, Grahamstown, South Africa
Lines: 25
X-Newsreader: TIN [version 1.1 PL6]