Bards Corner
Home page News > General News > Command Line Copy Permanent link to this page

Syndicate


Valid XHTML 1.0 Transitional

Follow us on Twitter

Follow kkourentzes on Twitter

GoogleBox

GoogleChat


Latest News

Command Line Copy
Export to PDF Permanent link to Command Line Copy Email Print
Written by Administrator
Tuesday, 23 November 2010

Copy text from the console window

Way back in the days of DOS, it was not uncommon to enter text directly from the command window into a file with the "copy" command. That is less common in Windows but the capability is still there. Output from the command window or console is denoted by CON. (It is not case-sensitve.) To copy text from the command window to a file "sometext.txt",

the sequence of statements would be copy con sometext.txt

First line of your desired text
some more text...
^Z

 

The last line indicates the keyboard combination of the Control key and "z" followed by pressing the Enter key.

This command terminates the sequence and sends the text to the desired file, which it creates. This particular example places the file in the working directory but other paths can be used.

Last updated ( Tuesday, 23 November 2010 )



0 Comments
Your name :

cool wink smile shocked sick angry blink sad unsure kissing w00t grin
silly pinch sideways whistling devil dizzy blush cheerful wassat ermm laughing tongue
Your comment :

Text remaining :


   
 

GoogleAds

SpiceWorks

Free Networking Monitoring Software For Network Management