Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

XP Perl Replacement for "Send to Clipboard as Filename"

by Melly (Hermit)
on Aug 20, 2009 at 09:52 UTC ( #790043=snippet: print w/replies, xml ) Need Help??
Description:

For some reason, XP powertools is missing one of my favourites - the ability to right-click on a file, and send the path and name to the clipboard.

So, I added the following to a shortcut I called "Send to Clipboard" in my SendTo folder:

C:\Perl\bin\perl.exe -e "use Win32::Clipboard;Win32::Clipboard($ARGV[0 +]);"
C:\Perl\bin\perl.exe -e "use Win32::Clipboard;Win32::Clipboard($ARGV[0
+]);"
Replies are listed 'Best First'.
Re: XP Perl Replacement for "Send to Clipboard as Filename"
by Sandy (Curate) on Aug 20, 2009 at 16:22 UTC
    Great! I love it!

    I used wperl instead of perl so the command window doesn't flash at me.

    C:\Perl\bin\wperl.exe -e "use Win32::Clipboard;Win32::Clipboard($ARGV[ +0]);"
    Sandy

      And I love wperl - never knew about it before. Thanks!

      map{$a=1-$_/10;map{$d=$a;$e=$b=$_/20-2;map{($d,$e)=(2*$d*$e+$a,$e**2 -$d**2+$b);$c=$d**2+$e**2>4?$d=8:_}1..50;print$c}0..59;print$/}0..20
      Tom Melly, pm (at) cursingmaggot (stop) co (stop) uk
        wperl is particularly useful if you are writing gui apps (such as Perl/Tk).

        Down side, any error/warning messages disappear into aether surrounding your computer.

        Usually I use perl while coding/debugging, and wperl for release

      Excellent. You can even copy multiple file names by using

      C:\Perl\bin\wperl.exe -MWin32::Clipboard -e Win32::Clipboard(join(qq(\ +r\n),@ARGV))
Re: XP Perl Replacement for "Send to Clipboard as Filename"
by planetscape (Chancellor) on Aug 21, 2009 at 03:18 UTC
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: snippet [id://790043]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (9)
As of 2023-12-11 15:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?











    Results (41 votes). Check out past polls.

    Notices?