How do I create drag-and-drop Strawberry Perl programs?

Under Windows (tested with XP), you can create a .cmd file and simply have it run the Perl program with the argument of %1 to pass the filename over, as if executed by commandline.

perl c:\test.pl %1

Then you can simply drag and drop a file onto the .cmd file to execute.

Leave a Comment