Perl script fails to run Schedule task with "%1 is not a valid Win32 application"

1

I am trying to run a Perl script in Windows 2012 R2 (64 bit) using schedule task. I am getting %1 is not a valid Win32 application. (0x800700C1) error. When I run this script from the command prompt it runs fine

I have Strawberry Perl (64 bit) installed on this server.

How to resolve this issue?

perl
scheduled-tasks
asked on Stack Overflow Jul 5, 2016 by syedf • edited Jul 5, 2016 by Borodin

1 Answer

0

Depending on which Windows OS you're using, for Windows 7 professional, One need to add the full path to perl exe in the "program/script" box, and the full path to the perl script in the "Add Arguments (optional)" box. I had the same problem, this fixed the problem.

answered on Stack Overflow Nov 2, 2016 by David Zhao

User contributions licensed under CC BY-SA 3.0