回复 1# bat小猎手
请参考Q-04把bat文件保存为ANSI编码:
https://mp.weixin.qq.com/s/Koje4FufWxWBs7ioDy_LJA- @echo off
- set "MyOutlook=0"
- dir /b /s /a-d "%ProgramFiles%\Microsoft Office" 2>nul | findstr /i "outlook.exe" >nul && set "MyOutlook=1"
- dir /b /s /a-d "%ProgramFiles(x86)%\Microsoft Office" 2>nul | findstr /i "outlook.exe" >nul && set "MyOutlook=1"
- if %MyOutlook% equ 1 (
- echo 已安装
- ) else (
- echo 未安装
- )
- pause
复制代码
|