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

jquery - How do you format the date used in the popover widget title of FullCalendar? -

Bubble Sort Manually a Linked List in Java -

asp.net mvc - SSO between MVCForum and Umbraco7 -