从java传参数到批处理 从java中接受name参数 在批处理中新建名为name的文件夹 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 java 文件public static void main(String[] args){ String name = "test"; if(args == null || args.length == 0) { return; } else { name = args[0]; } Runtime r = Runtime.getRuntime(); r.exec(new String[]{"creatFile.bat", name});}bat文件[code=BatchFile]md %1[/code] 不成功 改成 Process ps = Runtime.getRuntime().exec("cmd /c start D:/creatFile.bat d:\\aaaf");成功 运行在linux上的JAVA程序突然消失了,没有任何系统异常日志 祝大家节日快乐 请教一个关于写文件的问题 为什么我用junit进行单元测试,多个任务同时都执行? J2SE是个好东西?? 一个不常见的使用语法,请赐教 Netbeans编译出现的问题 按位与的简单问题(计算器和程序里结果不一样!) 请各位仁兄送小弟一程,关于JMS 《对等网络编程源代码解析》电子工业出版社,这本书谁有源代码呢?高分送上,不够再加。 Java死锁小程序出现的问题 substring的问题 复习J2SE应该做哪些小项目呢??
{
String name = "test";
if(args == null || args.length == 0)
{
return;
}
else
{
name = args[0];
}
Runtime r = Runtime.getRuntime();
r.exec(new String[]{"creatFile.bat", name});
}
bat文件
[code=BatchFile]
md %1
[/code]
改成 Process ps = Runtime.getRuntime().exec("cmd /c start D:/creatFile.bat d:\\aaaf");成功