Command Line Clipboard

Comments [0]

I just needed to copy the output of the DOS command dir to another file. The usual mechanism is to send the output to a file, open the file, then copy the contents to the actual destination file. I was sure there must be an utility that would copy output in the command line to the clipboard and indeed I found such an utility. Kudos to Steve Kemp and his clipboard utility. I was able to do what I needed very easily:

C:\>dir /s /b *.txt | clipboard -

Then just paste into Notepad++ or other application!


Comment Section

Comments are closed.