ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl-win32-users
perl-win32-users
RE: drag'n'drop onto desktop icon ???
by Jack D. other posts by this author
May 23 2005 12:58AM messages near this date
view in the new Beta List Site
drag'n'drop onto desktop icon ??? | Re: drag'n'drop onto desktop icon ???
>  -----Original Message-----
>  From: perl-win32-users-bounces@[...].com 
>  [mailto:perl-win32-users-bounces@[...].com] On 
>  Behalf Of Michael D Schleif
>  Sent: May 22, 2005 11:29 PM
>  To: perl-win32-users mailing list
>  Subject: drag'n'drop onto desktop icon ???
>  
>  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?
>  
You can add a DropHandler to the registry manually (or just run the perl
program provided below)

###########################
use Win32::TieRegistry;
$Registry-> Delimiter("/");
$perlKey = $Registry-> {"HKEY_CLASSES_ROOT/Perl/"};
$perlKey-> {"shellex/"} = {
	"DropHandler/" =>  {
		"/"=> "{86C86720-42A0-1069-A2E8-08002B30309D}"
	}};
###########################

Once that is done - any icon with the .pl extension should receive the
filenames in @ARGV.

Jack
_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
Michael D Schleif
Jack D.
$Bill Luebkert

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved