Coding Villa

COPY OUTPUT TEXT COMMAND LINE WINDOW

Author : Zaryab Liaqat

Share with Friends
Views : 409
Ratings : 0
Bookmarks : 0
Farourities : 0

Description


In the above there were two methods for copying text from the command line to the clipboard. The following article is an easier way using the clip.exe utility which is built into windows 7 and Vista.


Advertisements


 

In the above there were two methods for copying text from the command line to the clipboard. The following article is an easier way using the clip.exe utility which is built into  WINDOWS 7  and Vista.

 

COPY OUTPUT FROM COMMAND LINE APPLICATIONS TO THE CLIPBOARD

 

The following image shows that how to copy output from the command line applications to the CLIPBOARD :

 

 <Command> | clip

 

You can comprehend this process by following example:

 

You could do this, if you want to output from the echo command into to the clipboard:

 

 

Redirection can be used to send a file directly into the clip utility. Like this:

 

 

 

clip < filename.txt>

 

The following example shows the single. php file onto the board

 

 

You can use the type command and then pipe it into the clipboard, like this.

 

 

By regenerating of the one, you will also be able to paste content into any other application where you want. For exe.

 

 

CREAT A CONTEXT MENU HELPER TO COPY FILE CONENTS TO THE CLIPBOARD

 

 

Context menu item helps you to copy the contents of any file directly to the clipboard. The following instructions will be helpful to comprehend this process.

 

 

CREAT A CONTEXT MENU IEM TO COPY A TEXT FILE TO THE CLIPBOARD IN THE WINDOWS 7/ VISTA/ XP

 

The people who usually likes to  stored a lot of information in text -format files they have probably encountered a scenario so, this is better to prevent that problem you open the file in notepad, select all, and then copy to the clipboard.

 

With the Utility built only into windows 7 and vista you can do just that, you can also hide it behind the SHIFT+RIGHT-CLICK MENU, in this way unless you hold down the SHIFT key it won’t waste space on the menu.

 

USING THE COPY TO CLIPBOARD HACK

 

Hold down the SHIFT key and right click on the text file enables a new item for “COY TO CLIPBOARD”.

 

Now the new information on the clipboards appears for easy pasting into whatever application where you want.

 

 


MANUAL REGISTRY HACK (for .files)


Open up regedit.exe through the start menu or run box and then browse down the following key


HKEY_CLASSES_ROOT\txtfile\shell

 

 

 

In the registry underneath each type of a file there is a shell key with a list of actions under it. Now this is a time to create a new key that is called “COPYTOCLIP”  and then a key under it called ‘command’.

 

You can now set the default value of copy to clip to something useful like “COPY CONTENTS TO CLIPBOARD” and in the last set the value of ‘command’ like

 

 cmd /c clip < "%1"


DOWNLOAD REGISTRY HACK

 

Simply download, by double clicking on copy contents to clipboard to the clipboard. You can also remove hacks with the Remove Copy contents to clipboard

 



Article Tags
Share with Friends

Comments




Leave a Reply

Name (required)  
Mail (will not be published) (required)   
 
Enter This Code
Captcha
 

Advertisements

Article Categories

.NET


Databases


Mobile Development


Operating Systems


Web Development


Coding Villa on Facebook