and named it drop.pl#!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);
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
In reply to Re: Drag and drop to a perl source file.
by hiseldl
in thread Drag and drop to a perl source file.
by thunders
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |