【发布时间】:2012-08-29 09:09:51
【问题描述】:
到目前为止,我已经让这条线完美运行,它在我的计算机上执行 calc.exe:
Runtime.getRuntime().exec("calc.exe");
但是如何从网站链接下载和执行文件?例如http://website.com/calc.exe
我在网上找到了这段代码,但它不起作用:
Runtime.getRuntime().exec("bitsadmin /transfer myjob /download /priority high http://website.com/calc.exe c:\\calc.exe &start calc.exe");
【问题讨论】: