Some people used to work at the command prompt/line on
Windows box or even sometimes we also use command prompt. Because there are
still lot of things present that can be only done by the help of writing
commands. You may realize that several tasks are performed by the command when
you have no any other options. And a nice example has shown below.
When your computer is n’t being connect to the Internet, and then obviously you will wish to see
the output of the “ping” or the command of “tracert”. Usually all the internet
user used to see the ping in this situation. And if you wish to print the text
of a directory in Windows clipboard, then the command “dir” will come to your
elusiveness.
Some tips and tricks are mentioned here and that are - If
you include the pipe* operator (|) to your command which is pursued by the
“clip” command, then the output of your actual command will be saved to the
Windows clipboard very easily and it won’t print inside the window of Command
Prompt.
Some examples are shown here:
(1) dir | clip => Copy the content of any folder to the
clipboard.
(2) tree | clip => Display the algorithmic directory
framework and simply save it to the clipboard.
(3) type error.log | clip => Place the content of the
file error.log to the clipboard.
(4) sort file.txt | clip => Sort the file and save the
sorted output to the clipboard.
(5) ipconfig /all | clip => obtain the details of your
network connection for sending to the tech support.
You will have to keep in mind that The “clip” command may be
unavailable on Windows XP but in the place of that, you can simply use the
redirect operators, like > and >>, for saving in text file from the
command output.
In the alternative,
make a right-click somewhere inside the command window, and choose Mark option
from the contextual menu, you have to use the mouse for highlighting a block
text and after then just press Enter to save it to the clipboard.
Related article for you: