写一个 bat 并运行
要能判断 当前进程有没有 a.exe
如果有就算了
如果没有,就运行a.exe
怎么写啊??
晕死了,写了几次都不会.
我这样写的。。。。
for %%a in (tasklist/NH) do %%a>1.txt
type 1.txt | if not find "a.exe"
a.exe
--------------------------------------------
问题已完美解决,感谢老大的帮助.
youxi01,代码如下:
tasklist /NH |FIND "QQ">nul && echo QQ.exe已经存在! ||"E:\Program
Files\Tencent\QQ\CoralQQ.exe"
[ Last edited by huzixuan on 2006-11-7 at 06:33 AM ]
要能判断 当前进程有没有 a.exe
如果有就算了
如果没有,就运行a.exe
怎么写啊??
晕死了,写了几次都不会.
我这样写的。。。。
for %%a in (tasklist/NH) do %%a>1.txt
type 1.txt | if not find "a.exe"
a.exe
--------------------------------------------
问题已完美解决,感谢老大的帮助.
youxi01,代码如下:
tasklist /NH |FIND "QQ">nul && echo QQ.exe已经存在! ||"E:\Program
Files\Tencent\QQ\CoralQQ.exe"
[ Last edited by huzixuan on 2006-11-7 at 06:33 AM ]
