Is there a way or program to copy content of .txt
file to clipboard without opening it?
Now I have to open->ctrl+a->ctrl+c->close
. A little bit annoying if you do it often.
Is there a possible shortcut for this operation?
windows xpwindows-explorer
Is there a way or program to copy content of .txt
file to clipboard without opening it?
Now I have to open->ctrl+a->ctrl+c->close
. A little bit annoying if you do it often.
Is there a possible shortcut for this operation?
Best Answer
There's a clipboard utility in Windows called
clip.exe
.In the command prompt, you can copy the contents of a file to your clipboard using
clip < file.txt
This will be useful if you use the command prompt often. If you don't, you can add it to your context menu. I've just tested this out with instructions from HowToGeek on Windows 7, but I had to make a little tweak before I got it to work.
HowToGeek has also mentioned that
clip.exe
does not come with XP, so you'll have to download it from Microsoft FTP here and place it in your Windows system directory.Now whenever you right click on a file, you should see a
Copy to Clipboard
option. What it does it that when you click on it, it will open a command prompt and run theclip.exe
utility on the output piped from the file you selected.