Directly Copy Command Prompt Output to Windows Clipboard

Last Updated On : Saturday, November 30, 2013
0

As we have already mentioned in our previous posts, command prompt is one of the important feature which has DOS commands. Still in windows you can do some actions with command prompt only. Now lets see how to Directly Copy Command Prompt Output to Windows Clipboard. We can do the same by adding a |pipe” symbol and “Clip” command to your DOS commands.

How To Steps:

1. Open Command Prompt.

2. Now start typing the commands as listed below.

Examples :

dir /w/a | clip – It directly copy the content of a folder including hidden items to windows clipboard.

type techtolead.txt | clip – It copy the content of the file techtolead.txt to windows clipboard.

Directly Copy Command Prompt Output to Windows Clipboard (1)

Clip command tested in Windows 7,8,8.1 and it not works on XP.

3. Now after executing the commands. Go to notepad and right click to paste the contents copied to windows clipboard.

Directly Copy Command Prompt Output to Windows Clipboard (2)