I am using Windows 7 and Windows XP, and the associations are identical. Watch your quotes, in your FTYPE use something like: FTYPE perl="C:\Perl\bin\perl,exe" "%%1" %%*
(The double %% stumpted me for a while)
I use .bat file shortcuts to run Python and PHP from cmd.exe on both and Windows 7 did not require any changes to the .bat files. I use ActiveState Perl which does the correct ASSOC and FTYPE for me.
However there is an issue with them on Windows 7. “Out of the box”, the ASSOC command gives “Access is denied”, even though the user is an Administrator.
My first thought was to turn off the dreaded User Account Control settings, but that changed nothing. The eventual solution was to go into regedit and grant my user full control on registry key HKEY_CLASSES_ROOT, which is where the file associations are held. Fortunately Windows security for keys (and directories) is based on inheritence, and so keys within that hive will have the same permissions by default.
| [reply] [d/l] |
Tell person to read (from cmd.exe)
help assoc
help ftype
perl is used as an example | [reply] |
You can just add ;.pl to $ENV{PATHEXT} | [reply] |