in reply to Drag and drop to a perl source file.

If you are using ActiveState Perl, you can create a "drop target" using the following steps:

  1. write your script and save it (for this example, I used the following code:
      #!perl -w use strict; open(OUT, ">>drop.txt") or die "Could not open drop.txt"; my $time = scalar localtime; print OUT $time,"\t"; print OUT @ARGV,"\n"; close (OUT);
    and named it drop.pl
  2. change to the directory where your script is located and use the pl2bat.bat script to "convert" your script to a .bat file. i.e. cmd> pl2bat.bat drop.pl
  3. on the desktop right click and choose new->shortcut and create a shortcut to your .bat file.

now you can drop files on the new shortcut (.bat file) icon and it will use the full path as an argument. I tested this on my win2k box, and when I cat the drop.txt file, I get the time and the name of the full path as expected. YMMV.

--
hiseldl
"Act better than you feel" --inner prophet