U
Unite
I have the following code :
Runtime rt = Runtime.getRuntime();
String commandLine = "\""+path+application+"\" /t "+"\""+PDFStore+"\
\"+item.toString()+"\" \""+currentPrinter+"\"";
Process p = rt.exec(commandLine);
p.destroy() ;
System.out.println(commandLine);
My problem is that if I use the output from the Eclipse Console window
below :
"F:\Program Files\Adobe\Reader 8.0\Reader\AcroRd32.exe" /t "F:
\Documents and Settings\UnitePC\My Documents\46-200805.pdf " "EPSON
Stylus CX3200"
I can copy paste it and run from anywhere on the computer through
windows command and it works 100% but the Process p =
rt.exec(commandLine); does not do anything.
Am I missing a step somewhere? As said the value from
System.out.println(commandLine); works from within windows command.
Thanks
Runtime rt = Runtime.getRuntime();
String commandLine = "\""+path+application+"\" /t "+"\""+PDFStore+"\
\"+item.toString()+"\" \""+currentPrinter+"\"";
Process p = rt.exec(commandLine);
p.destroy() ;
System.out.println(commandLine);
My problem is that if I use the output from the Eclipse Console window
below :
"F:\Program Files\Adobe\Reader 8.0\Reader\AcroRd32.exe" /t "F:
\Documents and Settings\UnitePC\My Documents\46-200805.pdf " "EPSON
Stylus CX3200"
I can copy paste it and run from anywhere on the computer through
windows command and it works 100% but the Process p =
rt.exec(commandLine); does not do anything.
Am I missing a step somewhere? As said the value from
System.out.println(commandLine); works from within windows command.
Thanks