Skip to main content
Post Undeleted by Steve P.
Post Deleted by Steve P.
Post Undeleted by Steve P.
deleted 16 characters in body
Source Link
Steve P.
  • 14.7k
  • 9
  • 45
  • 74

You need to explicitly call perl in the command. You can't run a script simply by giving its location.Try:

Runtime.getRuntime().exec(new String[] {"perl", "C:\\Lazy\\zipTransfer.pl"});

You need to explicitly call perl in the command. You can't run a script simply by giving its location.

Try:

Runtime.getRuntime().exec(new String[] {"perl", "C:\\Lazy\\zipTransfer.pl"});
Post Deleted by Steve P.
Source Link
Steve P.
  • 14.7k
  • 9
  • 45
  • 74

You need to explicitly call perl in the command. You can't run a script simply by giving its location.