I have a Java program that I need to run when a file exists. I have written a Perl program to see if the control file is available (FileFound_sh is the Perl program. If I run it from the DOS prompt using 'perl FileFound_sh' it works. I want to run it from the Windows Task scheduler.I think I have to run something that contains 'perl FileFound_sh' in the scheduler.I created a file 'Inv1.exe' and I tried using the start command and then I tried -
LAUNCH EXTERNAL PROCESS ("D:\\Perl\\bin\\perl.exe D:\\Program Files\\OHS\\Invoice\\FileFouns_sh")
Neither worked and neither gave an error.Does anybody know what to use?
LAUNCH EXTERNAL PROCESS ("D:\\Perl\\bin\\perl.exe D:\\Program Files\\OHS\\Invoice\\FileFouns_sh")
Neither worked and neither gave an error.Does anybody know what to use?