PowerShell,如何在现有浏览器选项卡中打开url? [英] PowerShell, How can I open an url in existing browser tab?

查看:157
本文介绍了PowerShell,如何在现有浏览器选项卡中打开url?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想制作一个PowerShell脚本,它可以:


  1. 运行Chrome

  2. 打开a google.com网站

  3. 留下一些时间
  4. 在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:

  1. Run Chrome
  2. Open a google.com website
  3. Stay some time on it
  4. 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆