我有一個包含以下行的 powershell 檔案:
[system.Diagnostics.Process]::Start("chrome","http://some/path/1")
[system.Diagnostics.Process]::Start("chrome","http://some/path/2")
[system.Diagnostics.Process]::Start("chrome","http://some/path/3")
...每次我運行它時,path1 在 Chrome 中打開,后兩個在 Edge 中打開。
Handles NPM(K) PM(K) WS(K) CPU(s) Id SI ProcessName
------- ------ ----- ----- ------ -- -- -----------
40 5 844 3792 0.02 56748 1 chrome
31 4 684 4020 0.02 106324 1 msedge
31 4 684 4016 0.02 73624 1 msedge
到底是怎么回事?
uj5u.com熱心網友回復:
您可以將多個 URL 傳遞給 chrome,試試這個:
[system.Diagnostics.Process]::Start("chrome","http://some/path/1 http://some/path/2 http://some/path/3")
(但這將在同一視窗的新選項卡中打開)
轉載請註明出處,本文鏈接:https://www.uj5u.com/qianduan/488533.html
標籤:电源外壳
