.net控制台应用程序具有超链接? [英] .net console app with hyperlinks?

查看:70
本文介绍了.net控制台应用程序具有超链接?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有可能吗?

更新-
这实际上是一个文本浏览器,它根据各种命令显示各种信息表立即在提示符下输入网址,例如在浏览器中输入url



现在,而不是输入各种命令



prompt>命令arg1 arg2
,前提是您可以对某个列 /行中的文本说单击,这将执行以下命令



prompt> commandX arg1



它会更快/更容易



现在,在有人提到使用典型浏览器/之前asp.net mvc /任何应用程序,我已经在运行,但是遇到了一些限制,特别是。访问网络文件。现在,已经使用了读取文件等的服务代理服务,但是已经添加了许多扩展名,如果您可以将应用程序作为带有mvc模式的控制台提示符运行并添加扩展名等。



如果仅文本是可单击的,它将使其使用起来更加友好!

解决方案

窗口的外壳不支持可点击的超链接,因此不行,这是不可能的。



您要做什么以确保在命令外壳中需要超链接?也许将此应用程序更好地构建为WinForms / WPF或ASP.NET应用程序。


is it possible ? any samples/patterns or ideas on how to go about it ?

Update - this essentially becomes a text browser which displays various tables of information based on various commands on the prompt like typing the url in a browser

now instead of typing various commands like

prompt>command arg1 arg2 if only you could say "click" on the text in a certain "column"/"row" which would execute the command say

prompt>commandX arg1

it'd be somewhat faster/easier

Now, before someone mentions doing a typical browser/asp.net mvc/whatever app, i already have that running but have encountered some limitations esp. with accesing network files. etc. Now that's taken care of using a service-broker service which reads the file etc. but having added numerous extensions to it, it'd be somewhat easier if you could just run the app as a console prompt with a mvc pattern and add extensions to it etc. etc.

if only the text is clickable, it'd make it more friendly for use !!

解决方案

The window's shell doesn't support clickable hyperlinks, so no, this isn't possible.

What are you trying to do that warrants the need for hyperlinks in the command shell? Perhaps this application would be better built as a WinForms/WPF or ASP.NET application.

这篇关于.net控制台应用程序具有超链接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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