Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 439
  • Last Modified:

Redirect output to clipboard

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
UsfJam
Asked:
UsfJam
  • 2
1 Solution
 
jmiller47Commented:
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
 
UsfJamAuthor Commented:
What if I don't have access to that cd?
0
 
UsfJamAuthor Commented:
nevermind, found the download.  Looks like you get an easy 100 points.  Happy birthday.
0

Featured Post

[Webinar On Demand] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now