谢谢作者: luckboy45 时间: 2008-3-6 21:52 for %%f in (a.exe,b.exe,c.exe) do for /D %%d in (c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z) do if exist %%d:\%%f start y.exe&& echo 没找到你要找的东西& pause作者: jinlizhpc 时间: 2008-3-6 22:50 如果在纯DOS环境下自动寻找各盘里的a.exe b.exe c.exe文件,有其中一个文件则运行它,没有则显示“没有所需的文件”
又怎样编写?作者: jinlizhpc 时间: 2008-3-7 14:50 没有人帮忙吗?作者: lovelymorning 时间: 2008-3-8 14:29 2楼这么好的答案,就不会在这里改一改?
for %%f in (a.exe,b.exe,c.exe) do for /D %%d in (c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z) do if exist %%d:\%%f start %%f&& echo 没找到你要找的东西& pause作者: fastslz 时间: 2008-3-8 14:54 call+shift不过还得取决于你的纯DOS环境的