Put this into a ".bat" file, e.g., "clipfile.bat" (one line!):
@perl -MWin32::Clipboard -e "binmode(*STDOUT); $c=Win32::Clipboard(); +print $c->Get();" > clipfile.txt
Update: Added binmode() call as in tilly's suggestion.
Christian Lemburg
Brainbench MVP for Perl
http://www.brainbench.com
In reply to Re: Clipboard to file
by clemburg
in thread Clipboard to file
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |