Tip: Use CLIP.EXE to manage clipboard in CMD

limneos

MIA
Guru
VIP
Local time
6:59 PM
Messages
1,009
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 Computer My Computer

At a glance

Windows 7 RC 7100 32bit/64bitIntel Core2Duo E4500 2.20 GHz2x1GB Kinsgston DDR2 800MHzNvidia 8500GT
Computer Manufacturer/Model Number
ENIAC
OS
Windows 7 RC 7100 32bit/64bit
CPU
Intel Core2Duo E4500 2.20 GHz
Motherboard
ASUS P5LD2-X/1333
Memory
2x1GB Kinsgston DDR2 800MHz
Graphics Card(s)
Nvidia 8500GT
Sound Card
Onboard High Definition Audio Device
Monitor(s) Displays
Sony Bravia 42"
Case
LINKW 2222
Cooling
Standard Intel
Keyboard
Some cheap one
Mouse
Microsoft Intellimouse something
Internet Speed
24MBps ADSL
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 Computer My Computer

At a glance

Windows 7
Computer Manufacturer/Model Number
XPS 420
OS
Windows 7
Screen Resolution
1376x768
Hard Drives
11tb+
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 Computer My Computer

At a glance

Windows 7 RC 7100 32bit/64bitIntel Core2Duo E4500 2.20 GHz2x1GB Kinsgston DDR2 800MHzNvidia 8500GT
Computer Manufacturer/Model Number
ENIAC
OS
Windows 7 RC 7100 32bit/64bit
CPU
Intel Core2Duo E4500 2.20 GHz
Motherboard
ASUS P5LD2-X/1333
Memory
2x1GB Kinsgston DDR2 800MHz
Graphics Card(s)
Nvidia 8500GT
Sound Card
Onboard High Definition Audio Device
Monitor(s) Displays
Sony Bravia 42"
Case
LINKW 2222
Cooling
Standard Intel
Keyboard
Some cheap one
Mouse
Microsoft Intellimouse something
Internet Speed
24MBps ADSL
I never said it did. I don't use need/use that function
 

My Computer My Computer

At a glance

Windows 7
Computer Manufacturer/Model Number
XPS 420
OS
Windows 7
Screen Resolution
1376x768
Hard Drives
11tb+
Nice tip, limneos. Thanks.

Gary
 

My Computer My Computer

At a glance

Vista Ult 64 bit Seven Ult RTM x64Intel Core2 Quad Q6600 2.40 gigahertzCrucial Ballistix 4x2GB PC2 6400NVIDIA GeForce 8600 GTS 256 MB
Computer Manufacturer/Model Number
Dell XPS420
OS
Vista Ult 64 bit Seven Ult RTM x64
CPU
Intel Core2 Quad Q6600 2.40 gigahertz
Memory
Crucial Ballistix 4x2GB PC2 6400
Graphics Card(s)
NVIDIA GeForce 8600 GTS 256 MB
Sound Card
Creative SB X-Fi audio
Monitor(s) Displays
HP w2207 + HPvs15
Screen Resolution
1680x1050 + 1024x768
Hard Drives
2-WD5000AAKS-500 GB
WD5000AAV-500 GB external
Keyboard
Microsoft Comfort Curve
Mouse
MX Revolution
Other Info
Wacom Intuos 2 Graphics Tablet
Experience Index=5.5
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 Computer My Computer

At a glance

W 7 64-bit UltimateIntel Q9550 Yorkfield8GB Dominator 8500C5DATI : XFX 5870
Computer Manufacturer/Model Number
* BFK Customs *
OS
W 7 64-bit Ultimate
CPU
Intel Q9550 Yorkfield
Motherboard
ASUS P5Q Pro
Memory
8GB Dominator 8500C5D
Graphics Card(s)
ATI : XFX 5870
Sound Card
Realtek HD Audio 7-1
Monitor(s) Displays
1x 47" LCD HDMI & 3x 26" LCD HDMI
Screen Resolution
1920x1080P & 1920x1200
Hard Drives
1x 80GB Intel X25-M G2 SSD : 1x 500GB & 1x 640GB WD Caviar Black(s)
PSU
Corsair 620HX
Case
Cooler Master RC-690
Cooling
Tuniq Tower 120, 2x 140mm and 3x 120mm case fans
Keyboard
Microsoft 500
Mouse
Razer Diamondback 3G
Internet Speed
14 Mb/s
Other Info
1x Koutech 3Gb/s SATA HDD Hot Swap Rack
Or pipe it to the clipboard

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 Computer My Computer

At a glance

7, XP, osx, iosi5, amd, intel-duo core2G, 6G, 8G
Computer type
Laptop
Computer Manufacturer/Model Number
Dell, selfmade, Apple
OS
7, XP, osx, ios
CPU
i5, amd, intel-duo core
Motherboard
dell, aopen, apple
Memory
2G, 6G, 8G
Hard Drives
250G, multiple, 320G
Mouse
Dell wired, Logitech wireless, Canon MarkI wireless.
Antivirus
SEP, ZoneAlarm, don't need
Browser
IE9, FF&Ie, FF&Chrome rarely Safari
Other Info
I'm in CT, but DST occurs here and I don't see a way to declare that.
Back
Top