Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: 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 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.