在执行路径的前后加上引号: Process process = Runtime.getRuntime().exec("cmd /c start " + "\"\" \"" + locationCmd + "\"");
java调用cmd执行命令遇到有空格路径解决
猜你喜欢
转载自blog.csdn.net/weixin_39654286/article/details/94733180
今日推荐
周排行