Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Tip: Use CLIP.EXE to manage clipboard in CMD

12 Mar 2009   #1
limneos

Windows 7 RC 7100 32bit/64bit
 
 
Tip: Use CLIP.EXE to manage clipboard in CMD

In many cases in this forum and elsewhere, you are asked to submit screenshots of command prompt commands and their printed results.

Sometimes though, you might need the text result to be editable, rather than a jpeg image. Many users are not familiar with the QuickEdit mode of Command Prompt, or the result is too big (e.g. a /help result), so you cannot easily copy the text from the cmd window.

A tool introduced from Vista, Clip.exe, also available in W7, can make your life easier on this.
So when you are asked to post a screenshot of e.g. bcdedit command, instead of the screenshot you can post the actual cmd text results.

To do so, just type the command in command prompt followed by | clip (|=pipe)

example:

bcdedit | clip

Now your clipboard contains the bcdedit command's results.You can just paste it anywhere.

Other useful examples (for debuggin purposes):

powercfg /query | clip

ipconfig | clip

dir c:\windows\system32 | clip

etc

Limneos


My System SpecsSystem Spec
.

12 Mar 2009   #2
hdjunkie

Windows 7
 
 

Good tip. Another easy way to get cmd.exe results to text is to simply put a carrot ">" after the command with the location of the new text file after it.
Like...
ipconfig > c:\users\public\documents\ipconfigresults.txt

It's useful with scheduled tasks/batch files
My System SpecsSystem Spec
12 Mar 2009   #3
limneos

Windows 7 RC 7100 32bit/64bit
 
 

Quote   Quote: Originally Posted by hdjunkie View Post
Good tip. Another easy way to get cmd.exe results to text is to simply put a carrot ">" after the command with the location of the new text file after it.
Like...
ipconfig > c:\users\public\documents\ipconfigresults.txt
Indeed, but this doesn't copy it to the clipboard. To get it copied, you will then need to open the ipconfigresults.txt, select all , copy. Clip.exe places it in the clipboard without having to open a file.
My System SpecsSystem Spec
.


12 Mar 2009   #4
hdjunkie

Windows 7
 
 

I never said it did. I don't use need/use that function
My System SpecsSystem Spec
16 Mar 2009   #5
garysgold

Vista Ult 64 bit Seven Ult RTM x64
 
 

Nice tip, limneos. Thanks.

Gary
My System SpecsSystem Spec
14 Mar 2010   #6
Bare Foot Kid
Microsoft MVP

W 7 64-bit Ultimate
 
 

This is great, thanks Limneos.

My bcdedit output as an example.


Code:
 
 
Windows Boot Manager
--------------------
identifier              {bootmgr}
device                  partition=D:
description             Windows Boot Manager
locale                  en-US
inherit                 {globalsettings}
default                 {current}
resumeobject            {9222e001-28c4-11df-8694-d031a9396882}
displayorder            {ntldr}
                        {current}
                        {aec762e2-86c1-11de-8d82-c6496531d197}
toolsdisplayorder       {memdiag}
timeout                 30
Windows Legacy OS Loader
------------------------
identifier              {ntldr}
device                  partition=D:
path                    \ntldr
description             Earlier Version of Windows
Windows Boot Loader
-------------------
identifier              {current}
device                  partition=C:
path                    \Windows\system32\winload.exe
description             Windows 7
locale                  en-US
inherit                 {bootloadersettings}
recoverysequence        {9222e003-28c4-11df-8694-d031a9396882}
recoveryenabled         Yes
osdevice                partition=C:
systemroot              \Windows
resumeobject            {9222e001-28c4-11df-8694-d031a9396882}
nx                      OptOut
Windows Boot Loader
-------------------
identifier              {aec762e2-86c1-11de-8d82-c6496531d197}
device                  partition=D:
path                    \Windows\system32\winload.exe
description             Vista 64-bit Ultimate
locale                  en-US
inherit                 {bootloadersettings}
osdevice                partition=D:
systemroot              \Windows
resumeobject            {aec762e3-86c1-11de-8d82-c6496531d197}
nx                      OptOut
My System SpecsSystem Spec
07 Oct 2013   #7
PReinie

7, XP, osx, ios
 
 
Or pipe it to the clipboard

Quote   Quote: Originally Posted by limneos View Post
Quote   Quote: Originally Posted by hdjunkie View Post
Good tip. Another easy way to get cmd.exe results to text is to simply put a carrot ">" after the command with the location of the new text file after it.
Like...
ipconfig > c:\users\public\documents\ipconfigresults.txt
Indeed, but this doesn't copy it to the clipboard. To get it copied, you will then need to open the ipconfigresults.txt, select all , copy. Clip.exe places it in the clipboard without having to open a file.
Or instead of redirecting to a file you could pipe it into the clipboard: ipconfig | clip.exe

You might have to provide the full path to clip.exe, whatever that is.
My System SpecsSystem Spec
Reply

 Tip: Use CLIP.EXE to manage clipboard in CMD




Thread Tools





Similar help and support threads
Thread Forum
Where is clipboard.exe?
I am trying to put a shortcut to clipboard.exe on my dektop but can not find this file. I have W7 Pro 64 bit. On my old XP machine I had this shortcut on the dekstop because it made the Print Screen facility so much easier. (As far as I can rememeber) Can anyone help please?
General Discussion
soft to manage launching of soft on 5760*1080 and manage, its so panic
https://skydrive.live.com/redir?resid=57487370749B6866!1322&authkey=!4LBOC9*NPyA%24 https://skydrive.live.com/redir?resid=57487370749B6866!1322&authkey=!4LBOC9*NPyA%24 above is my Eyefinity setup 5760*1080 with HD 7950 OC 3GB( 4th monitor is shut down because AMD strictly need Active...
Graphic Cards
How do i uninstall Clip.exe
How do i uninstall Clip.exe, I don't like the cmd window popping up.
General Discussion
Clip Art
Does window seven have clip art? If yes, how do I get access to it. I have been trying without success to get clip art on to window seven and I have had no luck. I transferred clip art and music from a disc that I have. It went from e to c drive but I am not able to use this clip art. ...
General Discussion
I don't have Clip Board
Just notice I don't have a Clip Board. I downloaded Speccy and I want to copy ram specs to clip board so I can print them. I don't want to copy all the information, just ram specs. I right click, (select all) right click (copy to clip board) that I don't have. I check search this site and didn't...
General Discussion
add vid clip
How can you attach a regular video clip into a post?
Chillout Room

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 16:05.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App