solan 当前离线
一级士官
@echo off reg query "HKEY_CURRENT_USER\Software\Unigraphics Solutions\NX" /v if errorlevel 1 ( tasklist | find "ugslmd.exe" if not errorlevel 1 (goto x1) else (goto x2) )else goto exit :x1 .......... :x2 .........复制代码
DAIC 当前离线
中将
TOP
@echo off reg query "HKEY_CURRENT_USER\Software\Unigraphics Solutions\NX" pause复制代码
@echo off for /f "tokens=2" %%a in ('reg query "HKEY_CURRENT_USER\Software\Unigraphics Solutions\NX"') do set /a n=%%a if %n%=0 (goto exit) else ( tasklist | find "ugslmd.exe if not errorlevel 1 (goto x1) else (goto x2) ) :x1 ..... :x2 .....复制代码
@echo off for /f "tokens=2" %%a in ('reg query "HKEY_CURRENT_USER\Software\Unigraphics Solutions\NX"') do set /a n=%%a echo %n% pause复制代码
@echo off reg query "HKEY_CURRENT_USER\Software\Unigraphics Solutions\NX" | findstr "HKEY" if errorlevel 1 ( goto :end ) else ( tasklist | findstr "ugslmd.exe" && goto :x1 || goto x2 ) :x1 echo x1 goto :end :x2 echo x2 goto :end :end pause复制代码
/zhqsystem/zhq 当前离线
中尉
pcl_test 当前离线
荣誉版主
现在还达不到10楼所说的要求,我贴上更改后的详细代码,请版主帮我再更改一下 solan 发表于 2015-10-11 09:20