0
总的初学者在批处理脚本,我试图做一个批处理文件,检查程序是否在任务管理器中运行。如果应用程序正在运行,请运行更新文件,如果未安装该程序,请安装程序.. Adobe Reader作为示例。使用.bat文件安装/更新程序
@echo off
echo Installing Adobe Reader DC 150072033 Base...
echo This step will be omitted if it is unnecessary.
:B
tasklist | findstr /I "AcroRd32.exe"
if errorlevel 1 (call "msiexec /i AcroRdrDC1502020039.msi /qn") ELSE (timeout /t 30)
GOTO :B
echo.
echo Installing Adobe Reader DC Update Patches...
msiexec /p "AcroRdrUpd1502020039.msp" /qn"
echo.
echo Installation concluded.
希望你有一些建议或解决方案。 新年快乐:)
你的问题是什么? – aschipfl