| Store | Cart

Re: drag'n'drop onto desktop icon ???

From: $Bill Luebkert <dbec...@adelphia.net>
Mon, 23 May 2005 00:14:13 -0700
Michael D Schleif wrote:

> I have a perl program that successfully processes a set of text files.> So far, the UI is to pass the incoming text file to the program on the> command line.> > Users want an icon on their desktops, and they want to drag the text> file onto this icon, in order to process the file.> > I have not been able to figure out how to do this.> > What do you think?

Have you tried creating a shortcut to Perl and renaming it to the
name of the Perl script and add the path to the perl script as an
arg ?

Set Properties->Shortcut->Target to something like :

C:\Perl\bin\perl.exe C:\Home\Me\test.pl         (adjust the arg to point to your script)

And test.pl:

use strict;
use Win32;

my $msg = '';
$msg .= "$_\n" foreach @ARGV;
Win32::MsgBox($msg);	# print args in MsgBox

__END__

-- 
  ,-/-  __      _  _         $Bill Luebkert    Mailto:dbec...@adelphia.net
 (_/   /  )    // //       DBE Collectibles    Mailto:d...@todbe.com
  / ) /--<  o // //      Castle of Medieval Myth & Magic http://www.todbe.com/
-/-' /___/_<_</_</_    http://dbecoll.tripod.com/ (My Perl/Lakers stuff)

Recent Messages in this Thread
Michael D Schleif May 23, 2005 05:29 am
$Bill Luebkert May 23, 2005 07:14 am
Jack D. May 23, 2005 07:30 am
Messages in this thread