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,FREEMAIL_FROM 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 07:02:53 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!elnk-pas-nf2!newsfeed.earthlink.net!wn14feed!worldnet.att.net!207.35.177.252!nf3.bellglobal.com!nf1.bellglobal.com!nf2.bellglobal.com!news20.bellglobal.com.POSTED!not-for-mail From: "Nose Red" Newsgroups: comp.lang.ada References: <1056026816.27326@news.drenet.dnd.ca> Subject: Re: How to execute DOS command from an Ada program ? Message-ID: <1056030469.40030@news.drenet.dnd.ca> Cache-Post-Path: news.drenet.dnd.ca!unknown@131.136.202.27 X-Cache: nntpcache 2.3.3 (see http://www.nntpcache.org/) Date: Thu, 19 Jun 2003 09:47:48 -0400 NNTP-Posting-Host: 131.136.242.1 X-Complaints-To: abuse@sympatico.ca X-Trace: news20.bellglobal.com 1056030469 131.136.242.1 (Thu, 19 Jun 2003 09:47:49 EDT) NNTP-Posting-Date: Thu, 19 Jun 2003 09:47:49 EDT Organization: Bell Sympatico Xref: archiver1.google.com comp.lang.ada:39450 Date: 2003-06-19T09:47:48-04:00 List-Id: Yes, i found the Spawn oper, it may be the one i need. Much thanks for your support, Vinzent. --Kim "Vinzent Hoefler" wrote in message news:bcscbe$mjcn9$1@ID-175126.news.dfncis.de... 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.