http://www.perlmonks.org?node_id=277702


in reply to (Not Quite Perl) Running Scripts from Right-Click Context Menu in Windows

This is very cool. It seems to work fine on WinXP as well. The only question I have is, how do you find out which directory was right clicked on to run the script? I tried using Cwd, but that gives me the directory one level up. (i.e. when I right click on the directory c:\devel\perl\test and select my context-menu script, it gets Cwd as c:\devel\perl). Any ideas?