I know, there are several forum posts about this topic. I'm sorry I'm adding another one :) . It's clear to use Process.exec to do so. I'm doing the following:

Java Code:
String path = "db2cmd \"C:\Documents and Settings\Administrator/.protone/advis/advis_2007_08_14_09_28_27_953.cmd\"";
Process proc = Runtime.getRuntime().exec(path);
I'm getting the following error when the db2cmd window opens:

'C:\Documents' is not recognized as an internal or external command,
operable program or batch file.

I also tried it using "db2cmd start ..." , but this failed too.

So the problem is the path with whitespaces, although I added quotation marks.

Any help is highly appreciated.