Monday, February 2, 2015

Clip Snippet


Quickie: you run a command, then want its output in your Word document (because, for some reason, customers won't accept .TXT files as deliverables).  Try pressing the up arrow to queue the previous command to be repeated, and then piping it to CLIP.EXE:

ipconfig /all | clip

Check this little guy out (from CLIP /?):

CLIP

Description:
    Redirects output of command line tools to the Windows clipboard.
    This text output can then be pasted into other programs.

Parameter List:
    /?                  Displays this help message.

Examples:
    DIR | CLIP          Places a copy of the current directory
                        listing into the Windows clipboard.

    CLIP < README.TXT   Places a copy of the text from readme.txt
                        on to the Windows clipboard.

Yeahhhh.  It'll copy its input into the clipboard.  Not bad :-)

No comments:

Post a Comment