🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.modula2
Article #3498

Re: Executing Files From Modula 2

#3498
From: Peter Moylan
Date: Wed, 17 Apr 1996 23:42
26 lines
1684 bytes
Andy Blake (c9550044@hades.hud.ac.uk) wrote:
>I am wondering if there is any simple way in which I can run executable
>files (such as an MS-DOS command) from Modula 2.  All of the ways that I
>have seen up to now involve complex file handles and other data.

This is an implementation-specific issue; there's no way to do
it portably because the details depend on things like which
operating system you're using, therefore there's no way to
build it into the language.  It has to be done via library
modules.

What you need to do is read the library documentation for
whichever compiler you're using.  Some compilers come with
an easy-to-use library procedure to do the job, and some don't.

A general comment to all beginners (though I doubt that it'll
do any good): if you want to ask questions like this, then you
need to specify which compiler you're using, which operating
system, etc.  If the question is too vague then you're unlikely
to get a useful answer.

--
Peter Moylan                           peter@ee.newcastle.edu.au
                  http://www.eng.newcastle.edu.au/ee/Moylan.html
OS/2 freeware list at 
      http://www.eng.newcastle.edu.au/ee/Moylan/os2/os2info.html
Technical Details
Message-ID: <4l3vks$oi2@seagoon.newcastle.edu.au>
Path: arc1-ca.pugleaf.net!fourier.newcastle.edu.au!peter
References: <MXNuGB.BOXC@csh-newsserver.csh.rit.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!fourier.newcastle.edu.au!peter
From: peter@fourier.newcastle.edu.au (Peter Moylan)
Newsgroups: comp.lang.modula2
Subject: Re: Executing Files From Modula 2
Date: 17 Apr 1996 23:42:20 GMT
Organization: The University of Newcastle
Message-ID: <4l3vks$oi2@seagoon.newcastle.edu.au>
References: <MXNuGB.BOXC@csh-newsserver.csh.rit.edu>
Reply-To: peter@tesla.newcastle.edu.au
NNTP-Posting-Host: fourier.newcastle.edu.au
X-Newsreader: TIN [version 1.2 PL2]