PowerShell,如何在现有浏览器选项卡中打开url? [英] PowerShell, How can I open an url in existing browser tab?
问题描述
我想制作一个PowerShell脚本,它可以:
- 运行Chrome
- 打开a google.com网站
- 留下一些时间
- 在google.com ===> / li>
- 在google.com ===> / li>
所以这是代码,适用于我,它运行Chrome并在选项卡中打开google.com网站:
启动进程chrome.exewww.google.com
主要问题,我不知道如何在同一个选项卡中打开新链接。我发现这篇文章 https://msdn.microsoft .com / en-us / library / aa768360(v = vs.85).aspx ,但我是一个noobie,无法正确使用这些信息。
是否有人可以帮助我?您可以使用下面的powershell命令在任何浏览器的新选项卡中打开URL
启动过程-FilePath Chrome -ArgumentList https://www.google.co.in
其中
文件路径 - 浏览器类型(Chrome,资源管理器)
ArgumentList - URL
I want to make a powershell script, that will:
- Run Chrome
- Open a google.com website
- Stay some time on it
- Go from google.com ===> bing.com in the same tab.
So this is the code, that works for me, it's run Chrome and open google.com website in the tab: Start-Process "chrome.exe" "www.google.com"
The main problem, I don't know how to open new link in the same tab. I found this article https://msdn.microsoft.com/en-us/library/aa768360(v=vs.85).aspx , but I am a total noobie and can't use this information properly. Is there someone, who could help me? Please?
you Can use below powershell command to open URL in new tab in any Browser
Start-Process -FilePath Chrome -ArgumentList https://www.google.co.in
Where
Filepath - Browser type (Chrome , Explorer)
ArgumentList - URL
这篇关于PowerShell,如何在现有浏览器选项卡中打开url?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!