level 1
运行外部程序时,经常要添加参数(比如ping -n),那么,bat程序能试着参数吗?怎么设置参数呢?应该用什么命令?如何编写?希望高手指点
2010年09月18日 13点09分
1
level 1
回复:2楼
非常感谢!除了%1,dos还有没有什么其他比较特殊的变量?
2010年09月21日 11点09分
3
level 6
%0自身
%1 例子:运行的参数为c:\a.bat woshiren
那么%1=woshiren
%2 例子:运行的参数为c:\a.bat woshiren bushiren
那么
%1=woshiren
%2=bushiren
以此类推
2010年09月21日 13点09分
4