Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Win7, ASSOCiation , and @ARGV

by cdarke (Prior)
on Mar 14, 2012 at 16:24 UTC ( #959614=note: print w/ replies, xml ) Need Help??


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?


Comment on Re: Win7, ASSOCiation , and @ARGV
Download Code
Re^2: Win7, ASSOCiation , and @ARGV
by ww (Bishop) 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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://959614]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (13)
As of 2015-07-06 18:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (80 votes), past polls