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

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 Windows 7, 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

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

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

Windows 7
 
 

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

Vista Ult 64 bit Seven Ult RTM x64
 
 

Nice tip, limneos. Thanks.

Gary
My System SpecsSystem Spec
14 Mar 2010   #6
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

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 for2: Tip: Use CLIP.EXE to manage clipboard in CMD
Thread Forum
Where is clipboard.exe? General Discussion
Solved soft to manage launching of soft on 5760*1080 and manage, its so panic Graphic Cards
Solved video clip Microsoft Office
How do i uninstall Clip.exe General Discussion
Clip Art General Discussion
add vid clip Chillout Room
funny clip 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 03:50 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33