in reply to redirection problem

What output do you get from the following two commands?

C:\test>assoc .pl .pl=Perl C:\test>ftype Perl Perl="c:\perl64\bin\perl.exe" "%1" %*

Note: The argument to the second command comes from whatever is after the '=' in the output from the first.


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?

Replies are listed 'Best First'.
Re^2: redirection problem
by grizzley (Chaplain) on Jun 22, 2012 at 09:26 UTC

    Yes, I though it will be something with registry settings, but the output is exactly the same as yours.

      the output is exactly the same as yours.

      Really? You are using a 64-bit perl? Are you sure the quoting of the arguments is exactly the same?

      How about:

      C:\test>set pathext PATHEXT=.pl;.COM;.EXE;.BAT;.CMD;

      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?

        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