复制代码
- $FileName = "$env:SystemRoot\System32\Macromed\Flash\Flash*.ocx"
- if(Test-Path $FileName) {
- $objFile = Get-Item $FileName
- $VersionNum = $objFile.versionInfo.fileversion -replace ",","."
- } else {
- $VersionNum = "Not Installed"
- }
- $VersionNum
欢迎光临 批处理之家 (http://www.bathome.net/) | Powered by Discuz! 7.2 |