From: Jeffrey Carter <spam@spam.com>
Subject: Re: Ada Procedures Required for GNAT 3.10p (for DOS) Port
Date: Thu, 17 Jul 2003 01:45:42 GMT
Date: 2003-07-17T01:45:42+00:00 [thread overview]
Message-ID: <3F16004D.7000902@spam.com> (raw)
In-Reply-To: b3b4e2d7.0307160653.691c5ca3@posting.google.com
Debs Wisbey wrote:
>
> I am trying to port an old bit of code from the Alsys Compiler to GNAT
> 3.01p for DOS and have come across a few problems. Unfortunately, my
> Ada knowledge is not a string as I would like or require and so have a
> limited knowledge of the available packages.
I don't think it is a good idea for your Ada knowledge to be a string :)
> I am trying to write an Ada procedure that can call DOS commands from
> an Ada program that is running on a 386 machine that ONLY runs DOS.
>
> I am trying to write an Ada procedure that can rename a file, given
> the old filename and new filename as strings.
I don't recall 3.10 very well. Does GNAT.OS_Lib exist for that release?
If so, Spawn will do these kinds of things for you. You use the program
"command" and give it the arguments "/c desired-command arguments". For
example, for renaming a file, you would pass the arguments
"/c ren " & Old_Name & ' ' & New_Name
--
Jeff Carter
"You tiny-brained wipers of other people's bottoms!"
Monty Python & the Holy Grail
next prev parent reply other threads:[~2003-07-17 1:45 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-16 14:53 Ada Procedures Required for GNAT 3.10p (for DOS) Port Debs Wisbey
2003-07-16 20:14 ` Gautier Write-only
2003-07-17 0:03 ` Jerry van Dijk
2003-07-17 1:45 ` Jeffrey Carter [this message]
2003-07-17 13:25 ` Frank J. Lhota
2003-07-17 2:03 ` Randy Brukardt
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox