in reply to Explorer's Right-Click Menu
Adding a right-click entry in Windows Explorer is done by adding a registry key at the right location. Look in the Microsoft documentation or, much easier, steal from the XP Power Toys. The "Command Prompt Here" extension adds such a right-click entry.
Personally, I've moved to adding a shortcut into the "Send To" menu instead, because the interface is more maintainable by the end user.
In both cases, you need to make sure that the command line is not your Perl script (.pl) but perl.exe -w "c:\your\Perl\script.pl" "%1", or your Perl script will never receive the command line arguments. My way of doing that is to actually call a batch file first:
@echo off rem First, chdir into the directory where this batch file (and our Per +l script) reside: cd /d "%~dp0" rem Now, invoke our Perl script: C:\perl\bin\perl.exe myscript.pl "%1"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Explorer's Right-Click Menu
by Ace128 (Hermit) on Dec 21, 2005 at 14:13 UTC | |
by Corion (Patriarch) on Dec 21, 2005 at 14:15 UTC | |
| |
|
Re^2: Explorer's Right-Click Menu
by Fletch (Bishop) on Dec 21, 2005 at 15:55 UTC | |
|