我可以从C#控制台窗口获取复制/粘贴功能吗?

问题描述:

我在C#中开发一个控制台应用程序,并想知道是否有一种方法来获取复制粘贴或标记粘贴功能到我的应用程序,类似或相同的标准Windows命令提示符。这是一个野鹅追逐还是简单的应用程序变量?

I am developing a console application in C#, and was wondering if there was a way to get the "copy-paste" or "mark-paste" functionality into my application, similar or identical to that of the standard Windows command prompt. Is this a wild goose chase or a simple application variable?

谢谢Sean让我意识到这个问题。让我成为一个例子,别人不要跳上结论列车。

Thank you Sean for making me realize the complete idiocy of this question. Let me be an example to others to not jump on the conclusion train.

Sean指出复制粘贴可以使用cmd.exe的内置功能,让我意识到,是的,绝对是,当你运行在Windows中的命令行应用程序已经具有此功能。

Sean pointed out that "copy-paste can be done using cmd.exe's built-in functionality", making me recognize that, yes, absolutely duh, when you run your command line application in Windows it already has this functionality available.

由于我正在通过IDE执行DEBUG执行所有初始测试,和vshost不给你那个功能。

I erred by jumping to conclusions, for I was doing all my initial testing with the DEBUG execution through the IDE, and vshost does not give you that functionality.

一个快速的开始而不调试揭示了我的短视。

A quick "Start Without Debugging" revealed my short-sightedness.