Solved

Redirect output to clipboard

Posted on 2002-07-23
3
429 Views
Last Modified: 2008-03-17
I would like to have a batch file that will execute a command and send its output to the clipboard.  Is there any way to do this?
0
Comment
Question by:UsfJam
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 7

Accepted Solution

by:
jmiller47 earned 100 total points
ID: 7172567
The tool you need to do this is clip and is located on the Windows 2000 Resource Kit tools CDROM.


Clip

{command} | clip
clip < {file}

Place the command output file / specified file contents on the system clipboard.
0
 

Author Comment

by:UsfJam
ID: 7172588
What if I don't have access to that cd?
0
 

Author Comment

by:UsfJam
ID: 7172591
nevermind, found the download.  Looks like you get an easy 100 points.  Happy birthday.
0

Featured Post

The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
Article by: Justin
In light of the WannaCry ransomware attack that affected millions of Windows machines, you might wonder if your Mac needs protecting. Yes, it does and here is how to do it.
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question