- @echo off
- setlocal enabledelayedexpansion
- set "wmpfile=C:\Program Files\Windows Media Player\wmplayer.exe"
- if not exist "%wmpfile%" (
- echo 未安装Windows Media Player ...
- ) else (
- for /f "tokens=5" %%i in ('filever.exe "%wmpfile%"') do (
- set "wmpver=%%i"
- )
- echo 已安装Windows Media Player !wmpver!
- )
- pause
复制代码
|