PowerShell (powershell传教士)当前离线
上尉
function 我也来了呵呵 { $word路径 = ( Get-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Office\11.0\Word\InstallRoot -Name path).path + "\winword.exe" if (test-path $word路径) { Start-Process $word路径 break } $word路径 = ( Get-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Office\12.0\Word\InstallRoot -Name path).path + "\winword.exe" if (test-path $word路径) { Start-Process $word路径 break } $word路径 = ( Get-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Office\13.0\Word\InstallRoot -Name path).path + "\winword.exe" if (test-path $word路径) { Start-Process $word路径 break } $word路径 = ( Get-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Office\14.0\Word\InstallRoot -Name path).path + "\winword.exe" if (test-path $word路径) { Start-Process $word路径 } } 我也来了呵呵 复制代码
TOP
评分人数