I've recently created a Word to SharePoint Page converter.
my $input = "the file+its path I selected via Windows context menu";
.reg file (adjust the paths as needed)
REGEDIT4 [HKEY_CLASSES_ROOT\SystemFileAssociations\.docx\shell\CONVERT\command] @="c:\\Perl\\bin\\perl.exe c:\\Perl\\converter.pl \"%1\""
When your perl script starts, you'll have your
.docx file name in the