Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: Starting Strawberry in Win7

by LloydRice (Beadle)
on Aug 17, 2014 at 18:55 UTC ( [id://1097752]=note: print w/replies, xml ) Need Help??


in reply to Re: Starting Strawberry in Win7
in thread Starting Strawberry in Win7

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?

Replies are listed 'Best First'.
Re^3: Starting Strawberry in Win7
by Laurent_R (Canon) on Aug 17, 2014 at 19:17 UTC
    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.
        Allright, thank you for the correction, BrowserUk ++, I did not know that. This sounds quite practical, but it might also in some cases be a security issue, because someone may end up executing another program than the intended one.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (1)
As of 2024-04-25 01:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found