CMD: Add text to clipboard in DOS box/command line

Home -> Windows

9945 views

From the computer of: davak (390 recipes)
Created: Oct 08, 2003     Updated: Jul 19, 2004


Add a comment

Add to:
Add to stumbleuponAdd to del.icio.usDigg itAdd to FURL

Windows Server 2003 now has the ability to add text to the clipboard from the command prompt. Previous versions of windows can add this ability by downloading a program.

Many of us are still command prompt / dos box junkies. I found a neat trick in a thread started by mattACK on slashdot.org this morning.

In Windows Server 2003, the ability to add text to the clipboard from the command line has been added.

type reallybigfile.txt | clip



Out of the box, this does not work with most other versions of windows; however, Clip can be downloaded from cmdtools.com to give you this capability.

Subscribe to the Tech-Recipes Newsletter

You can get tips like this delivered in your email every week!

Enter your Email

We will never, ever sell your email address or spam you.





Related recipes:

  XP: Display Clipboard
  Vista/XP: Place Screenshot into Windows Clipboard
  XP / Vista: Copy an Error Message/Window into the Clipboard
  CMD: Copy/Paste between window and command console/DOS program
  Select Nonconsecutive Items in Word
  XP: Automatically defrag drives with a new context menu item
  XP: Set or configure network interface to DHCP wtih netsh from command line
  Processing the contents of a text file using FOR loop
  CMD: Create Shortcut To Command Line/Dos Programs
  Execute System Restore from the Command Line / Safe Boot

 

Sponsored links

 

Login

Nickname

Password

Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.