You can paste your text from any file.txt to into to any Windows application. The clip command copies all output from a command to the Windows Clipboard.
sintax: dir | clip copies the directory listing that is output from the dir command to the Windows Cliboard.
Kako kopirati tekst iz TXT datoteke u Windows Clipboard
The clip.exe command file comes standard with Windows Server 2003, Windows Vista, Windows 7, Windows 8.
It does not come standard with earlier versions of Windows such as Windows XP.
To see if you have clip.exe on your computer, type clip /? and if it is not available, you will see an error: 'clip' is not recognized as an internal or external command, operable program or batch file.
Can I get it from one of my other computers?
If you do not have it, you may be able to get a copy of it from one of your other computers; just copy the clip.exe file from that C:\%windir%\system32 folder to folder on your computer in to Windows C:\%windir%\system32 folder.
I can't get it anywhere. Now what?
Joel 'Jaykul' Bennett (HuddledMasses.org) is a C# programmer who wrote his own custom clip program (see clip.cs C# source code) that provides equivlaent functionality as the Windows clip.exe program.
Follow these steps to install a clip.exe command program:
1. Download clip.zip and unzip it to get clip.exe
(Note: This is not the Microsoft version) source: www.c3scripts.com/tutorials/msdos/
2. Put clip.exe in C:\Windows directory or in any other directory that is in your path.
command | clip
Copies the output from the specified command command to the Windows clipboard.
clip < filename
Copies the contents of the filename file to the Windows Clipboard.
Example: How to Copy text from 'redame.txt' file in to Windows Clipboard and Paste to Excel or Word
C:\Temp\clip < readme.txt