Skip navigation

JSI Tip 5377. How can I paste clipboard text to a CMD session's STDOUT?

To paste clipboard text to a CMD session's STDOUT, Download paste.zip. Unzip paste.zip and move paste.exe to a folder in your PATH.

When you open a CMD prompt and type paste /?, you receive:

Version 1.0, Copyright (C)2001, Frank P. Westlake.
Prints clipboard text to STDOUT.

PASTE

Checks for these clipboard data types in the order listed, the first match will be printed:

CF_OEMTEXT
CF_TEXT
CF_DSPTEXT
CF_HDROP



Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish