in reply to Re^3: redirection problem
in thread redirection problem

It was little different, but changing this var didn't help:

c:\>set pathext PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.py;.pyw c:\>set pathext=.pl;%pathext% c:\>set pathext PATHEXT=.pl;.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.py; +.pyw c:\>script.pl > noperl.txt c:\>type noperl.txt

Replies are listed 'Best First'.
Re^5: redirection problem
by BrowserUk (Patriarch) on Jun 22, 2012 at 13:27 UTC

    Are you sure that the output from ftype is: Perl="c:\perl64\bin\perl.exe" "%1" %*

    And not (say): Perl="c:\perl64\bin\perl.exe %1 %*" ?

    Because the only way I can (partially) reproduce your description is to change my ftype to the latter.


    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?

      Yes, it is the first one. I installed strawberry perl 5.12, changed registry to point at it and this one worked:
      C:\temp>ftype Perl Perl="C:\strawberry\perl\bin\perl.exe" "%1" %* C:\temp>script.pl aabc C:\temp>script.pl > strawberry.txt C:\temp>type strawberry.txt aabc
      I'll try to install AS 5.12 to see how it works (on Monday).

        Try removing the assoc and ftype prior to doing the installation.


        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?