最新消息: USBMI致力于为网友们分享Windows、安卓、IOS等主流手机系统相关的资讯以及评测、同时提供相关教程、应用、软件下载等服务。

Powershell 返回打开浏览器的 URL

业界 admin 3浏览 0评论

Powershell 返回打开浏览器的 URL


(New-Object -comObject Shell.Application).Windows() `

| where {($_.FullName -ne $null) -and ($_.FullName.toLower().EndsWith("iexplore.exe")) } `
| foreach { $_.locationURL } 


彻底退出。

foreach { $_.quit()}


Powershell 返回打开浏览器的 URL


(New-Object -comObject Shell.Application).Windows() `

| where {($_.FullName -ne $null) -and ($_.FullName.toLower().EndsWith("iexplore.exe")) } `
| foreach { $_.locationURL } 


彻底退出。

foreach { $_.quit()}


发布评论

评论列表 (0)

  1. 暂无评论