This is probably because it's trying to directly invoke ack.pl
, which only works when you tell Windows to associate the .pl
file extension with the Perl interpreter.
It's more robust to explicitly specify the Perl interpreter, though: The call should look like: ... cmd.exe /c (perl ack.pl ...
(assuming perl
is available through PATH
).