Master:
# 1    how to deal with white space for a file name in java?                  
Maggie
Online no
State
Grouping Member
Class class3
Score 97
Wealth 93.5
Posts 62
Login 05:17:08
I try to run a method:
Runtime.getRuntime().exec("pdftohtml.exe gemcitabine gemzare.pdf");

got an error:
cannot find the file gemcitabine

Pls help!
Hits: 437, Date: 2010-02-18 22:55:05
[Agree] ( 10 ) [Against] ( 8 )

# 2    you need to quote the file name if it has white space                  
luke1
Online no
State 453
Grouping Super Admin
Class class4
Score 250
Wealth 62
Posts 230
Login 07:37:57
pls rewrite you code to:

Runtime.getRuntime().exec("pdftohtml.exe \"gemcitabine gemzare.pdf\"");

Cheers
Hits: 436, Date: 2010-02-18 22:57:27
[Agree] ( 8 ) [Against] ( 8 )

1 - 2 [ 2]

Reply: how to deal with white space for a file name in java?

*First line:


More content:


Tags:



Hint: You cannot post here before loginLogin | Register

nothing