Filepath with Spaces as Java Argument -


what i'm trying is,

r.exec("xdg-open "+args[1]+"/qrcode.png"); 

but doesn't work expected if args[1] contains white spaces. know in case of shell script can resolved using "$path". need solution java.

try wrapping path in quotes:

r.exec("xdg-open \""+args[1]+"/qrcode.png\""); 

Comments

Popular posts from this blog

python - Installing PyDev in eclipse is failed -

PHP OOP-based login system -

c# - Nested Internal Class with Readonly Hashtable throws Null ref exception.. on assignment -