>  process = Runtime.getRuntime().exec("cmd /c start \"\" \"" + fileName + 
> "\"");


This doesn't work. If I write, on DOS window,

cmd /c start "c:\prova file.pdf"

another DOS window, and not file pdf is open.

If I write, on DOS window,

cmd /c start c:\prova file.pdf

I see the message "file c:\prova does't exist".

If I have space in name or in path, it seems impossible open a file.

N.B. User of java program sets name and path of file, I can't be sure that 
spaces are not present.






-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to