Re: Oddity with 5.12.2 and file associations

[email protected] (Paul)
Newsgroups perl.win32.vanilla
Message-ID <[email protected]>
Hope it isn't considered bad form to reply to your own post, but I wanted to
pass along what I found as I peeled the layers of the onion...

It appears that the v5.12.2 installer creates file associations so that in
Windows Explorer you can right click a .pl file and select "Execute Perl
Program" or "Syntax Check".

Searching the registry, I find that .pl files are associated as
"Perl_program_file" and that "Execute Perl Program" is set
to "C:\strawberry\perl\bin\perl.exe" %1

If use ftype to set the command to open the script 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" and everything
works.


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 we update the "HKEY_CLASSES_ROOT\Perl_program_file\shell\Execute Perl
Program\command" registry default entry to
""C:\strawberry\perl\bin\perl.exe" "%1" %*" (or both) ?

Thanks,
Paul
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.