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()}