how to run a process in background?

hallo,

I'm starting a process with runtime.exec() like this:

Runtime r = Runtime.getRuntime();

String[] conv = new String[1];

conv[0] = "executablepath";

Process p=r.exec(conv);

Now I want that the application does not appear and run in background. How do I do this?

I'm working with Windows NT4.0

Thanks

[368 byte] By [toonk] at [2007-9-26 2:07:02]
# 1
Is that the same as a deamon thread ?If it is you can create a thread, call setDeamon(true) and then start it.
shirish_wagh at 2007-6-29 8:53:52 > top of Java-index,Desktop,Runtime Environment...
# 2
I've tried what you said, but the application didn't run in background.I made a daemonthread and the appl. ran but in the foreground. Isn't there a method to do it with with a command?
toonk at 2007-6-29 8:53:52 > top of Java-index,Desktop,Runtime Environment...
# 3
As far as I know there is no such thing on NT as "run in background".
bschauwe at 2007-6-29 8:53:52 > top of Java-index,Desktop,Runtime Environment...
# 4
Try 'start /B <your original executable>'"start" starts your process in a new "window" but doesn't show the window if you use /B
lmcocew at 2007-6-29 8:53:52 > top of Java-index,Desktop,Runtime Environment...