Just thought this tip was so useful had to share with you guys and girls.
Via The Back Room TechCopying command prompt output directly to the Windows clipboard
March 26, 2009 — Julie
How often have you wanted to copy the output of a Windows command from the command prompt, but had to go thought the process of marking and copying the text first?
Redirecting the command and it’s output is as easy as this:
ipconfig /all | clip
will pipe the results of ipconfig into the clipboard, which can then be pasted into notepad with a CTRL-V. How convienent is that! This works in Windows 2003 and higher (sorry, no Windows XP).
Found at Copy Command prompt output directly Clipboard in Windows | Windows Reference
Very Handy!!!! and it can be used on XP...
Clip.exe comes with Windows Server 2003, but it also works in Windows XP Professional. Simply copy Clip.exe from the Windows\System32 directory on a Windows Server 2003 system, and then paste it into the Windows\System32 directory on a Windows XP system. (If you don’t have access to Windows Server 2003, you can download a copy of Clip.exe from Daniel Petri’s IT Knowledgebase site.)
I might be missing the point, but why is this better than simply clicking/selecting the section you want to copy and pressing enter?!
....Answered my own question... "Mark" isn't on by default! (A bit like the Mark typing this message!)
Ignore me! Useful util!
I'm pretty sure Mark is enabled by default. I've never had to enable it in XP. From the command prompt, click the C:\ at the top left - Edit > Mark, then Edit > Copy
I think the act of clicking Edit then Mark is you enabling it. But that clip.exe is a good idea. Ill add that here. Cheers
While this tip is a good one, the clipboard can be bypassed altogether by changing the pipe to a ">" which redirects screen output to an output device of your choosing or a text file.
example: ipconfig /all > ip.txt
typing the above will redirect the screen output to a text file called "ip.txt" - as long as you put the > symbol and the name of the text file you want to output the results to after the command (and its switches), AFAIK you can use this for almost any command within the Command Shell. This one also works in OS'es as far back as MS-DOS.
Or >> to imply append.
Cheers for that post russdev, i've always simply used the >C:\abc.txt at the end... Hence why if u ever see my c drive there is allot of random txt files there :P
I normally do it something like this ( works in xp as well )
Copy And Paste Text In Command Prompt
By enabling quick edit mode when you go into properties and then you can just highlight what you want to copy and left click to copy it and if you want to paste it back into the clipboard you can right click where the flashing mouse cursor is and it should paste it ( Ive not to date had to press enter to get rid of the white area when its highlighted to start with )
I just enable quick edit mode on all command prompts ie it should prompt you stating if its just this one or all from now on kind of thing.
There are currently 1 users browsing this thread. (0 members and 1 guests)