62,614
社区成员
发帖
与我相关
我的任务
分享
//例如
public class Storm {
public static void main(String []args){
// String s="http://blog.tobi.cn/Uploadfiles/2007-5/517242928.wma";
try {
String strExcel = "E:/Storm3/Storm.exe http://1.wma ";
Runtime.getRuntime().exec(strExcel);
} catch(Exception e) {}
}
}
// 我想把这个URL 传进去当参数 但是以下代码 s 传入进去后 暴风播放那个网络文件了
public class Storm {
public static void main(String []args){
String s="http://blog.tobi.cn/Uploadfiles/2007-5/517242928.wma";
try {
String strExcel = "E:/Storm3/Storm.exe s ";
Runtime.getRuntime().exec(strExcel);
} catch(Exception e) {}
}
}
String s="http://blog.tobi.cn/Uploadfiles/2007-5/517242928.wma";
try {
String strExcel = "C:/Program Files/StormII/Storm.exe "+s;
Runtime.getRuntime().exec(strExcel);
} catch(Exception e) {}
try {
String strExcel = "E:/Storm3/Storm.exe" + s;
Runtime.getRuntime().exec(strExcel);
}
catch(Exception e) {}