http://www.perlmonks.org?node_id=959614


in reply to Win7, ASSOCiation , and @ARGV

With the ftype you gave, on Windows 7, I cannot reproduce your problem. However, if I change the ftype to:
perl="C:\Perl\bin\perl.exe" "%1"
(omit the %*) then I can exactly reproduce your error. Check HKEY_CLASSES_ROOT\Perl\shell\Open\command in the registry?

Replies are listed 'Best First'.
Re^2: Win7, ASSOCiation , and @ARGV
by ww (Archbishop) on Mar 14, 2012 at 17:14 UTC

    More puzzlement (perhaps because when we play in the registery, we're beyond my depth), how come:

    C:>ftype perl perl="C:\Perl\bin\perl.exe" "%1" %*

    while regedit doesn't know that? Searching the registery, I find NOTHING for the exact string you posted (meaning, I assume, that I should perhaps set that?) but do find, searching for .pl:

    HKEY_CLASSES_ROOT | | | | | .pl (Default) REG_SZ ntpfile | | Content Type REG_SZ NoteTab Pro document | | Perceived Type REG_SZ text | | | Perl (Default) REG_SZ ntpfile | | | | | ShellNew (Default) REG_SZ (value not set) | | PersistentHandler (Default) REG_SZ {5e941....}

    ... the last of which says, "ww go out and RTFM (some more)!"

    Thank you.

      What do you get when you run this command?

      >reg query HKLM\Software\Classes\Perl\Shell\Open\Command HKEY_LOCAL_MACHINE\Software\Classes\Perl\Shell\Open\Command (Default) REG_EXPAND_SZ "C:\Perl64\bin\perl.exe" "%1" %*

      With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority".
      In the absence of evidence, opinion is indistinguishable from prejudice.

      The start of some sanity?

        C:\>reg query HKLM\Software\Classes\Perl\Shell\Open\Command HKEY_LOCAL_MACHINE\Software\Classes\Perl\Shell\Open\Command (Default) REG_SZ "C:\Perl\bin\perl.exe" "%1" %*
        REG_EXPAND_SZ? My iggerance is showing, again or is that peculiar to the 64 bit version? ww