I want to run my perl script<” ftp_files_copy.pl”> on windows through batch file<“Run_perl_script.bat”> at every 5 minutes interval
Well I have written one batch script:
schtasks /create /tn "batch Script" /tr E:\script\Run_perl_script.bat /sc minute /mo 5
perl ftp_files_copy.pl
But the problem is every 5 minutes command prompt displays for a while and then disappears but nothing is happening i mean my perl script is not running
These is my first batch script so please guys just help me out from this problem
Thanks
Most likely you need to specify the full path to your
ftp_files_copy.plscript:because, when the script is invoked, the
scriptdirectory is not necessarily (in fact, unlikely) the current working directory, and so theperlinterpreter needs to know the exact path to the script.