如何使用Windows命令获取剪贴板内容? [英] How can you get the clipboard contents with a Windows command?
本文介绍了如何使用Windows命令获取剪贴板内容?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
例如,我可以像这样将文件复制到剪贴板:
For example, I can copy a file to the clipboard like this:
clip < file.txt
(现在 file.txt $ c的内容$ c>在剪贴板中。)
我该如何做相反的事情:
How can I do the opposite:
???? > file.txt
以便剪贴板中的内容位于文件中。 txt
?
So that the contents of the clipboard will be in file.txt
?
推荐答案
您可以使用paste.exe软件来粘贴文本,就像您一样正在描述。
You can use the paste.exe software in order to paste text just like you are describing.
http://www.c3scripts.com/tutorials /msdos/paste.html
使用它,您可以执行以下操作:
With it you can do:
paste | command
将Windows剪贴板的内容粘贴到指定命令提示符的输入中
to paste the contents of the windows clipboard into the input of the specified command prompt
或
paste > filename
将剪贴板内容粘贴到指定文件。
to paste the clipboard contents to the specified file.
这篇关于如何使用Windows命令获取剪贴板内容?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文