In Windows Explorer (Win7) I can drop a file onto a batch (.bat) file, and the batch file is executed with the path to the dropped file as the first command line argument. How can I do the same thing with a Ruby script?
I don't mean using the argument within the script. The Ruby script doesn't get highlighted as a drop target when the file is over the icon, and dropping it just reorders the icons. I want it to behave the same as batch files (or any other executable).