Running system calls "silently" 
Author Message
 Running system calls "silently"

This may be simple, but I can't figure out how to make a system call
without it triggering a command window to open.

Maybe I should explain a little better. I'm attempting a:

system("blah");

where blah is a .EXE file. When I make this call, it triggers a {*filter*}
big command window which covers up my GUI application. Any idea how to
suppress the command window?

Thanks, Eddie.



Mon, 02 Aug 1999 03:00:00 GMT  
 Running system calls "silently"

Eddie,

 > This may be simple, but I can't figure out how to make a system call
 > without it triggering a command window to open.

Use one of the numerous other functions to run programs -- spawn*() if
you wish to stick with the C RTL, or have a go at CreateProcess() if
you want full control over the program you launch.

Cheers,
Felix.

----------
If you post a reply, kindly refrain from emailing it, too.



Mon, 02 Aug 1999 03:00:00 GMT  
 Running system calls "silently"


Fri, 19 Jun 1992 00:00:00 GMT  
 Running system calls "silently"

 Hi Eddie,

 <<<<<
 I'm attempting a: system("blah");
 where blah is a .EXE file. When I make this call, it triggers a {*filter*}
 big command window which covers up my GUI application. Any idea how to
 suppress the command window?
 >>>>>

 If you are using the system function only for running .EXE programs,
 you can try the ShellExecute function instead. The Online help gives
 you more information on this function.

 Hope this helps!
 Jagadish
 Aditi Corp.

 Aditi Corp was formerly known as NetQuest Inc.



Mon, 02 Aug 1999 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. directing unix system call "system"s output

2. "system()" system call

3. Q: Return-values of system("...") calls

4. C++ "system" call

5. System call "select( )" and "Message Queue"

6. about "call by value" and "call by reference"

7. "c" calling Fortran, and Fortran calling "c"

8. Running assembler procedure in "C"

9. Run "select" against Recordset

10. Running in "Other" AddressSpace

11. "talking" to running threads

12. "system" could not be found

 

 
Powered by phpBB® Forum Software