I previously asked about file associations in Win8 using ActiveState. That one was solved.

Now it's back again. This is Win 7 Pro with Strawberry. A simple test script "test.pl" is one print statement.

print "This is a test\n";
assoc .pl .pl=Perl_program_file
ftype Perl_program_file Perl_program_file="\strawberry\perl\bin\perl.exe" "%1" %*

Issuing the command

test

Causes a window to pop up saying

Windows cannot access the specified device, path or file. You may not have the appropriate permissions to access them.

I made sure all files had read/write permissions, including \strawberry. I tried running this from a DOS Box with and without admin privileges. That made no difference. I've had no problems with Win 7 Home Premium. This is my first time with Pro.

Also, I should note that ...

\strawberry\perl\bin\perl test.pl

works just fine.


In reply to Starting Strawberry in Win7 by LloydRice

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.