Subject: | File association / shell extension for v5.12.2.0 are incorrect / incomplete |
It appears that the v5.12.2 installer now creates file associations so that in Windows Explorer you can right
click a .pl file and select "Execute Perl Program" or "Syntax Check".
Unfortunately, if you open a command prompt and attempt to run a perl script, the command line arguments are not
passed along to the script.
Searching the registry, I find that .pl files are associated as "Perl_program_file" and that the "Execute Perl
Program" command is set to "C:\strawberry\perl\bin\perl.exe" %1
At a command prompt if I use ftype to set the Open command as follows:
ftype Perl_program_file="C:\strawberry\perl\bin\perl.exe" "%1" %*
Then ftype creates the "HKEY_CLASSES_ROOT\Perl_program_file\shell\Open\command" registry key and everything works
as expected.
So, in future releases could the "HKEY_CLASSES_ROOT\Perl_program_file\shell\Open\command" registry default entry
be created as
"C:\strawberry\perl\bin\perl.exe" "%1" %*
OR could the "HKEY_CLASSES_ROOT\Perl_program_file\shell\Execute Perl Program\command" registry default entry be
changed to
"C:\strawberry\perl\bin\perl.exe" "%1" %*
OR perhaps both ?
Thanks for the excellent distribution!
Paul