Does anyone know if it's possible to copy text from a Windows' command prompt or console window like the output of a command, console application or batch file?
By appending “| clip” to the end of your command the output will be copied to your clipboard. You can then paste it into notepad or any other text editor just like anything else on the clipboard.
Go to “Properties -> Options” and check the field that says “Enable Ctrl key shortcuts.” It is, however, not required to check the field for “Use Ctrl+Shift+C/V as Copy/Paste,” especially in Windows 11, as you still copy-paste without it, as it supports universal keyboard shortcuts.
Select all of the text in your document or on your screen by holding down the "Ctrl" key and pressing the letter "A". 18 Tech Support Reps Are Online! Microsoft Answers Today: 65. Remember the "Select All" shortcut ("Ctrl+A") by associating the letter "A" with the word "All".
Another option, if you know ahead of time that you want the results of a command to be placed on the clipboard, is to pipe your output to the CLIP utility.
Here are a two simple examples
echo Hello world!|clip dir|clip
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With