Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re^5: Win7, ASSOCiation , and @ARGV

by BrowserUk (Pope)
on Mar 14, 2012 at 20:23 UTC ( #959660=note: print w/replies, xml ) Need Help??

in reply to Re^4: Win7, ASSOCiation , and @ARGV
in thread Win7, ASSOCiation , and @ARGV

Try running this. It just might fix your problem:

>reg add HKLM\Software\Classes\Perl\Shell\Open\Command /t REG_EXPAND_S +Z /d "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?

Replies are listed 'Best First'.
Re^6: Win7, ASSOCiation , and @ARGV
by ww (Archbishop) on Mar 15, 2012 at 13:20 UTC

    Couldn't run from cmd, directly, despite various contortions (and the fact that I am Administrator), so, this AM, as suggested elswhere and in another context, stored your command as a .bat on desktop and right clicked to get the option to run as Admin.

    Bingo. No complaints and now the key has REG_EXPAND_SZ.

    Reboot is again in order to test the original script again.

    Post Reboot Update: :(

    Looks like time to reinstall.

    Update2: SOLVED! There's much useful info in this thread, which led to the conclusion that reinstalling Perl was the first best option. Using AS on Win7 (and probably elsewhere), right clicking the Perl executable in REMOVE PROGRAMS brings up 3 options, of which "Repair" uses the originally downloaded .msi.

    ... and, lo and behold, the quirks are gone!

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2020-10-28 01:01 GMT
Find Nodes?
    Voting Booth?
    My favourite web site is:

    Results (259 votes). Check out past polls.