1. Prevent Console with wx_shell()
- Posted by euphoric (admin) Mar 13, 2013
- 1445 views
Is there any way to prevent a console from appearing when wx_shell() is called? Or how about shutting down the console after the call?
2. Re: Prevent Console with wx_shell()
- Posted by ghaberek (admin) Mar 13, 2013
- 1436 views
euphoric said...
Is there any way to prevent a console from appearing when wx_shell() is called? Or how about shutting down the console after the call?
wx_shell() is just a simple pass-through for wxShell:
void WXEUAPI wx_shell(object command) { wxShell( get_string( command ) ); wxDeRefDS( command ); }
And according to their docs...
wxWidgets said...
bool wxShell(const wxString& command = NULL)
Executes a command in an interactive shell window. If no command is specified, then just the shell is spawned.
So I don't think there's any way to un-spawn the shell window once it opens.
You'll probably want to create a wxProcess instead. And don't over look Euphoria's own Pipe Input/Output routines as well.
-Greg