PowerShell 控制台输出上的可点击超链接 [英] Clickable hyperlink on PowerShell's console output

查看:243
本文介绍了PowerShell 控制台输出上的可点击超链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在使用以下 PowerShell 脚本时遇到了一些问题,你能帮我解决这个问题吗?

I'm having some issues with the following PowerShell script, could you please help me with that?

我想要完成的是在 PowerShell 的控制台输出中创建一个可点击的超链接.类似的东西:

What I'm trying to accomplish is create a clickable hyperlink in PowerShell's console output. Something like that:

$testOutPut = "http://something.com"
Write-Host $OutputConvertedIntoHYPERLINK

所需的控制台响应在哪里:

Where the desired console response would be:

clickable link to external app

 http://something.com

我的目标是将构建控制台上的可点击信息显示到 TFS 2015 中.

My goal with it is to show this clickable information on build console into TFS 2015.

推荐答案

您不能这样做,但您可以使用特定 URL 打开 Internet Explorer:

You can't do that but you can do to open internet explorer, with a specific URL:

$InternetExplorer=new-object -com internetexplorer.application
$InternetExplorer.navigate2("http://stackoverflow.com")
$InternetExplorer.visible=$true

这篇关于PowerShell 控制台输出上的可点击超链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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