To save the output of a command on the Windows clipboard, add a pipe* (|) operator to your command followed by the clip
command.
dir | clip
- copy the listing of current folder contents to the clipboard.
tree | clip
- copy a recursive directory structure to the clipboard.
pwd | clip
- copy the present working directory to the clipboard.