todo

windows 根据网络状况自动执行程序

up:2014-08-15 12:12:29 edit:2014-08-15 12:12:29 view:1437
echo off
ping www.baidu.com -n 1 >nul
if %errorlevel%==0 (goto case1) else (goto case2)

:case1
echo ok
goto end

:case2
echo dialog
taskkill /im drmain.exe /im drupdate.exe /im drclient.exe /f /t
start C:\Drcom\DrUpdateClient\DrMain.exe

:end

not in sinaapp