這是我用來打開特定 URL 的 shell 腳本
start microsoft-edge: https://stackoverflow.com/questions/ask
但是,我在瀏覽器中Profiles定義了多個。Edge
如何根據Profile名稱打開瀏覽器?如何Profile在腳本中傳遞名稱或路徑?
uj5u.com熱心網友回復:
您可以使用--profile-directory="Profile name"特定組態檔打開 Edge。
批處理檔案的示例代碼如下:
start "" "C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" https://stackoverflow.com/questions/ask --profile-directory="Profile 1"
注意:請將 Edge 路徑和組態檔名稱編輯為您自己的。
uj5u.com熱心網友回復:
我在 linux 上,所以我無法對其進行測驗,但您可以使用以下引數之一進行測驗:
--user-data-dir="C:\ChromeBrowser_profiles\Profile_edge"
要么
--profile-directory="Profile 4"
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/428977.html
