🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.modula2
Article #3635

Logitech Modula2 PCDOS Exec/System call wanted

#3635
From: abl
Date: Mon, 02 Mar 1987 18:27
13 lines
1336 bytes
I would like to perform a DOS command from inside a Logitech  Modula  2/86
program.  What  I  really want is something like the Unix system call used
to perform shell escapes.  In addition with DOS it helps to have a routine
which  can  read  the  environment  variable  COMSPEC  to find the path to
COMMAND.COM.

I have seen an implementation for Turbo Pascal that does this but not  one
for  Logitech  Modula  2/86.  I  am  using release 1.13 of the compiler so
maybe later versions include a library module to do this.

Also it seems that one must  deallocate  some  of  the  Modula2  program's
memory before performing the DOS Exec call so an explanation of this would
be appreciated.
Technical Details
Message-ID: <446@cernvax.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watnot!watmath!clyde!rutgers!husc6!seismo!mcvax!cernvax!abl

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watnot!watmath!clyde!rutgers!husc6!seismo!mcvax!cernvax!abl
From: abl@cernvax.UUCP
Newsgroups: comp.lang.modula2
Subject: Logitech Modula2 PCDOS Exec/System call wanted
Message-ID: <446@cernvax.UUCP>
Date: Mon, 2-Mar-87 13:27:12 EST
Article-I.D.: cernvax.446
Posted: Mon Mar  2 13:27:12 1987
Date-Received: Thu, 5-Mar-87 20:28:43 EST
Reply-To: abl@cernvax.UUCP (Alastair Bland)
Distribution: world
Organization: CERN European Laboratory for Particle Physics, CH-1211 Geneva, Switzerland
Lines: 13
Keywords: Logitech , Exec , PCDOS command