Saturday, 10 August 2013

Copy data from command prompt to Clipboard

           Sometimes we have to copy the data from command prompt using the mark all options in command prompt then press enter to copy the data. Instead of that how we can copy the output of a command in to clipboard.

Now let we see a sample demo , using the Command Dir which will list the content of a directory.

  1. Launch the Run.
  2. Type the cmd.
  3. enter
Type the "dir" in the command prompt

Now we can copy the same data to clipboard instead of command prompt. for  "Dir"

type dir | clip in cmd and enter , output of the following command is stored in clipboard.


Now paste the data to notepad and see the data .

  From this article you can learn how to copy the output of a command from the command prompt to clip board.

No comments:

Post a Comment