From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d27f35b521d35d26 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-06-19 06:03:44 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!213.200.246.247!not-for-mail From: Vinzent Hoefler Newsgroups: comp.lang.ada Subject: Re: How to execute DOS command from an Ada program ? Date: Thu, 19 Jun 2003 15:02:08 +0200 Organization: JeLlyFish software Message-ID: References: <1056026816.27326@news.drenet.dnd.ca> NNTP-Posting-Host: 213.200.246.247 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: fu-berlin.de 1056027822 23704297 213.200.246.247 (16 [175126]) X-Newsreader: Forte Agent 1.8/32.548 Xref: archiver1.google.com comp.lang.ada:39447 Date: 2003-06-19T15:02:08+02:00 List-Id: Nose Red wrote: >I am using Ada95 to develop a tool which will execute/call a DOS batch = file. >Anyone knows how ? If you use GNAT you may take a look at GNAT.OS_Lib and the Spawn procedure/function there. For executing a batch file you may also need Getenv to retrieve the name of the command processor (environment variable COMSPEC) to let it execute the batch. Vinzent.