Terry Orchard said:
I see. I'm surprised you can't do this with the xul stuff, but I'm not
familiary with it. When you launch the external application, you can't
specify that it be hidden?
You could do this with scripting (jscript, vbscript), but if you're
targeting w95, you probably don't want to assume the presence of WSH.
All the command line tools that I know of that can do this are DOS
tools, so they will flash that command box when they run. Can't think
of anything offhand to do this, sorry. Of course, it would be a pretty
easy program to write if you are handy with VC++, Delphi, VB, or
similar.
I know zero about what goes on with design of a XUL application. Still,
just in case of use, thought I'd mention a couple of invisible console
related things I've seen. The first, its WSH use, as Terry brought up.
...........................................................................
VBS to make a bat file (or program) run invisibly.
1. Create a file named invisible.vbs:
:: CreateObject("Wscript.Shell").Run """" & WScript.Arguments(0) & """", 0, False
2. Use invisible.vbs to run a program or a batch file:
:: wscript.exe "C:\Wherever\invisible.vbs" "C:\OtherPlace\MyBatchFile.bat"
http://ericphelps.com/batch/samples/invisible.txt
http://www.ericphelps.com/scripting/samples/Invisible/index.html
.............................................................................
.............................................................................
The other approach that I've found is a program named Run.exe:
| Run will allow execution of a console mode GUI program without its
| attendant console appearing. Run will create a hidden dos-box, that
| doesn't show up on the desktop OR on the taskbar. It will then execute
| your program, and pass along any extra arguments. This way, if you invoke
| it from the command line, it won't take over your current command window.
| And if you put it in a shortcut, you won't get that annoying dos-box.
http://www.neuro.gatech.edu/users/cwilson/cygutils/run/index.html
You pull out the run-native.exe file (54k) from that download. You rename
it to the program you want to run. This case: RunAttrib.exe. That gives you
the attrib exec doing its thing, but without invoking a console window.
.............................................................................