标题: 大家帮帮我 看看我写的 就是运行不起来
[打印本页]
作者: maryli0414
时间: 2008-5-2 20:45
标题: 大家帮帮我 看看我写的 就是运行不起来
@echo off
tasklist|find /i /c "explorer.exe" > c:\1.txt
for /f "tokens=1" %%i in (c:\1.txt) do (
set a=%%i
if %a% EQU 1 goto no
cmd /c setup1.exe
:no
cmd /c setup2.exe
检测进程里explorer.exe个数是否正常
就是运行不起来
不知道什么原因
请大家帮帮我
作者: slore
时间: 2008-5-4 09:41
@echo off
for /f "tokens=1" %%i in ('tasklist^|find /i /c "explorer.exe"') do set a=%%i
if %a% EQU 1 goto :no
echo cmd /c setup1.exe
goto :End
:no
echo cmd /c setup2.exe
:End
pause>nul