所以你自己要做路径,用调用的形式
pushd "D:\WorkTemp\dos\first"
call D:\WorkTemp\dos\灶橘first\4.bat
popd
pushd "D:\WorkTemp\dos\secend"
call D:\WorkTemp\dos\secend\4.bat
popd
pushd "D:\WorkTemp\dos\third"
call D:\WorkTemp\dos\third\4.bat
popd
==========================================
如果调用的形式(call)不隐晌团行,就用开启程序的形式
pushd "D:\WorkTemp\dos\first"
start D:\WorkTemp\dos\first\4.bat
popd
pushd "D:\WorkTemp\dos\secend"
start D:\WorkTemp\dos\secend\4.bat
popd
pushd "D:\WorkTemp\dos\third"
start D:\WorkTemp\dos\third\4.bat
popd
必须用shell吧?,你这要求很变态啊,囧了。我去试试再说吧
额,另外,洞激前touch命令不纳清支持正铅早则表达式
额,如下,写一个shell脚本
#!/bin/bash
for filename in $( seq 1 10 )
do
touch ${filename}.txt
done
然后运行之,即可
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)