从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");成功 JAVA疑惑!!谢谢!! 谁能告诉我一下JAVA虚拟机的工作流程 求救,如何用java现在网页源代码中<table>标签包含的内容! 请问如何使用java编程实现打开word文件 包的困惑 如何搜索接口的原型? Kosling每日问题之2004.03.16!今天没问题,高兴,散点点分!别嫌分少哦,来者有份! 怎么能简化输入超大字符集呀?用不用JAVA都行。 怎样判断字符串为null??? 给大家提个问题,jdbc和database的 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");成功