需要使用Java运行放置在另一台远程计算机上的exe文件,我已经尝试过以下命令来运行该exe文件,但该文件不起作用

时间:2018-08-02 11:11:40

标签: java executable processbuilder

ProcessBuilder b = new ProcessBuilder("cmd", "/c", "path", "-r:http://host:port", "-u:username", "-p:password", "dir");


ProcessBuilder pb = new ProcessBuilder("cmd", "/C", "path", "-u:user", "-p:password", "dir");

0 个答案:

没有答案