I am trying to trigger a batch file 5 pm everyday. It works while using a button that has the same exact script run when it is pressed, but not for a tag value change. I have set up logs and I know the script IS running except for the line that actually executes the batch.
The script in my on value change -
import system myLogger = system.util.getLogger("DevLogger") myLogger.info("In hour Change") if system.tag.read("DayOfWeek").value==2 and system.tag.read("HourOfDay").value==8: myLogger.info("In if statement") system.util.execute(["C:\NAS_Backup_BatFiles\Bay1_Cust_Backup.bat"])
I get the log statements of in hour change and in if statement, but my batch file is not running. It does run with this same logic when inside a button. Any ideas why?
Using Ignition 7.9.10