T
Tino
I would like to be able to drag and drop files onto a .pl file in the same
way I can drop files onto a .bat file. I made a .bat which can do this but
if I try to do the same thing with a .pl file I find the .pl file isn't able
to accept files for drag and drop operations, the cursor changes to the "not
allowed operation" symbol when the file being dropped is over the .pl file.
What do I have to do to the .pl file to make it work like the .bat file?
Example of .bat file onto which a file can be dropped:
@echo off
lot_loop
print.pl p=1 %1
shift
if not "%1"=="" goto plot_loop
Example of .pl file that I would like to do the same as the .bat file:
use strict;
use warnings;
foreach (@ARGV) {
system("print.pl p=1 $_");
}
regards
Peter
way I can drop files onto a .bat file. I made a .bat which can do this but
if I try to do the same thing with a .pl file I find the .pl file isn't able
to accept files for drag and drop operations, the cursor changes to the "not
allowed operation" symbol when the file being dropped is over the .pl file.
What do I have to do to the .pl file to make it work like the .bat file?
Example of .bat file onto which a file can be dropped:
@echo off
print.pl p=1 %1
shift
if not "%1"=="" goto plot_loop
Example of .pl file that I would like to do the same as the .bat file:
use strict;
use warnings;
foreach (@ARGV) {
system("print.pl p=1 $_");
}
regards
Peter