.bat文件怎么接收别人调用时传递进来的参数?比如我写了一个数据库查询的JAVA程序,已经打成了jar包,我的.bat文件里边会调用我的jar包,传递四个参数:url,userName,password,sql。那么现在问题来了,别人调用我这个.bat文件时,传递的参数我在.ba
.bat文件怎么接收别人调用时传递进来的参数?比如我写了一个数据库查询的JAVA程序,已经打成了jar包,我的.bat文件里边会调用我的jar包,传递四个参数:url,userName,password,sql。那么现在问题来了,别人调用我这个.bat文件时,传递的参数我在.ba 10
补充:那么现在问题来了,别人调用我这个.bat文件时,传递的参数我在.bat文件里怎么接收?
的感言:谢谢你帮了我大忙!
其他回答 (2)
直接用io写进去吧
能来代码我看看么?
printwriter out=new&printwriter&("tool.bat",true);out.println(url );out.println(use)out.flush();out.close();
你看下这个帖子 &给main函数传递过去你的url,userName,password,sql&http://blog.csdn.net/gufengcangying/article/details/8521334
等待您来回答
编程领域专家}