in reply to Starting Strawberry in Win7

Also, check your Default Programs as advised in this node of Win7, ASSOCiation , and @ARGV.

That thread details struggles with .pl association, and the way the OP fixed it.

        "You're only given one little spark of madness. You mustn't lose it."         - Robin Williams

Replies are listed 'Best First'.
Re^2: Starting Strawberry in Win7
by LloydRice (Beadle) on Aug 17, 2014 at 18:55 UTC

    With apologies to adefaria, it seems the drive letter IS required. Adding "C:" in front of the ftype string fixed it. choroba and marto, keep on truckin'. And thanks.

    And I should have included in my original question that I did have PATHEXT set up correctly. So, in reply to Laurent R, "test.pl" gave the same response as "test", both raised the "Windows cannot access..." popup, and then replied with "Access is denied", whether with admin privileges, or not. In reply to BrowserUK, I put the ".pl" farther down the string (just before ".BAT") instead of at the beginning, as in your note and as suggested in the "help ftype" printout. Apparently, order does not matter there.

    Many thanks to all. and to the Monks for a great site.

    Actually, there is one other note -- of Perl interest -- rather than Windows. I find it interesting that Strawberry set an appropriate ASSOC entry, but did not set anything in FTYPE. Is there a good reason for that?

      So, in reply to Laurent R, "test.pl" gave the same response as "test", both raised the "Windows cannot access..." popup, and then replied with "Access is denied", whether with admin privileges, or not.

      Maybe you still have the error, because there may be some other problems, but even if I use Perl under Windows only about 3 or 4 times per year (and am thus really not a specialist for that particular platform), I very much doubt that issuing the test command at the command prompt will launch the test.pl perl program.

        I use Perl under Windows only about 3 or 4 times per year (and am thus really not a specialist for that particular platform ...

        Perhaps you should let others answer then.

        I very much doubt that issuing the test command at the command prompt will launch the test.pl perl program.

        It does! If the environment is set up correctly.

        When a command (without a path or extension, like "test") is typed on the command line, first the variable PATHEXT=.pl;.COM;.EXE;.BAT;.CMD; is consulted, and each of the extensions found there are, in turn, added to the command before the path is searched for an 'executable', and the first one found is then run.

        In the case of PATHEXT above, test.pl, will take priority over test.com, which will take priority over test.exe which ...


        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.