java call cmd command execution path to solve the encountered spaces

Before and after the execution path with quotation marks:
Process process = Runtime.getRuntime().exec("cmd /c start " + "\"\" \"" + locationCmd + "\"");

Guess you like

Origin blog.csdn.net/weixin_39654286/article/details/94733180