comp.lang.ada
 help / color / mirror / Atom feed
From: "Nose Red" <nosered@hotmail.com>
Subject: Re: How to execute DOS command from an Ada program ?
Date: Thu, 19 Jun 2003 09:47:48 -0400
Date: 2003-06-19T09:47:48-04:00	[thread overview]
Message-ID: <1056030469.40030@news.drenet.dnd.ca> (raw)
In-Reply-To: bcscbe$mjcn9$1@ID-175126.news.dfncis.de

Yes, i found the Spawn oper, it may be the one i need.

Much thanks for your support, Vinzent.

--Kim

"Vinzent Hoefler" <ada.rocks@jlfencey.com> 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.





  reply	other threads:[~2003-06-19 13:47 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-19 12:46 How to execute DOS command from an Ada program ? Nose Red
2003-06-19 13:02 ` Vinzent Hoefler
2003-06-19 13:47   ` Nose Red [this message]
2003-06-19 17:05 ` tmoran
2003-06-20  4:33 ` Martin Krischik
2003-06-24 11:38   ` Nose Red
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox