* How to make a Shell call !!
@ 2000-02-23 0:00 Juan Miguel Padilla i Salom
2000-02-23 0:00 ` David
2000-02-23 0:00 ` James S. Rogers
0 siblings, 2 replies; 3+ messages in thread
From: Juan Miguel Padilla i Salom @ 2000-02-23 0:00 UTC (permalink / raw)
Hello, I wanted to know how can i make a shell call!!
somehing like system("dir"); on a c++ program.
thank for all.
ttig0212@teix.uib.es
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How to make a Shell call !!
2000-02-23 0:00 How to make a Shell call !! Juan Miguel Padilla i Salom
@ 2000-02-23 0:00 ` David
2000-02-23 0:00 ` James S. Rogers
1 sibling, 0 replies; 3+ messages in thread
From: David @ 2000-02-23 0:00 UTC (permalink / raw)
To: juan95
In article <88v4m4$st67@psi-news.airtel.net>,
"Juan Miguel Padilla i Salom" <juan95@hotmail.com> wrote:
> Hello, I wanted to know how can i make a shell call!!
>
> somehing like system("dir"); on a c++ program.
Here's an example of how to do it, with a library-level function
interfaced to the "system" call in the C run-time library:
with Interfaces.C;
function Execute_Shell_Command (The_Command_String : String)
return Interfaces.C.Int is
package C renames Interfaces.C;
function System (S : C.Char_Array) return C.Int;
pragma Import (C, System, "system");
begin
return System (C.To_C (The_Command_String));
end Execute_Shell_Command;
Sent via Deja.com http://www.deja.com/
Before you buy.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How to make a Shell call !!
2000-02-23 0:00 How to make a Shell call !! Juan Miguel Padilla i Salom
2000-02-23 0:00 ` David
@ 2000-02-23 0:00 ` James S. Rogers
1 sibling, 0 replies; 3+ messages in thread
From: James S. Rogers @ 2000-02-23 0:00 UTC (permalink / raw)
The software examples at www.adapower.com show some examples of how
this is done.
Jim Rogers
Colorado Springs, Colorado
Juan Miguel Padilla i Salom wrote in message
<88v4m4$st67@psi-news.airtel.net>...
>Hello, I wanted to know how can i make a shell call!!
>
>somehing like system("dir"); on a c++ program.
>
>thank for all.
>
>ttig0212@teix.uib.es
>
>
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2000-02-23 0:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-02-23 0:00 How to make a Shell call !! Juan Miguel Padilla i Salom
2000-02-23 0:00 ` David
2000-02-23 0:00 ` James S. Rogers
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox