Kam*_*106 5 powershell internet-explorer
我想干净/优雅地关闭Internet Explorer.taskkill会关闭它,但是当重新打开它时,它会询问你是否要重新打开最后一个会话.
尝试CloseMainWindow方法:通过向主窗口发送关闭消息来关闭具有用户界面的进程.
Get-Process iexplore | Foreach-Object { $_.CloseMainWindow() }
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
15222 次 |
| 最近记录: |