Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

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?


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

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2014-09-17 04:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (57 votes), past polls