New
#1
Task Scheduler Error 0x1--Running Bat File Daily
I have a bat file that I'm trying to setup to run daily; however, sometimes when task scheduler runs the bat file, it's giving a 0x1. If I run the bat file manually or copy/paste the command into command prompt, it works. I have the bat file setup to run with the highest privilege and to run whether the user is logged in or not. Here's the command that I'm trying to run from within the bat file:
I added the timeout at the end to see if I could read what was happening but task scheduler closed the cmd window anyway.Code:hostlist-compiler -c C:\Users\{username}\Documents\AdGuard\config\aiofireboggreen.json -o C:\Users\{username}\Documents\GitHub\AIO-Firebog-Blocklists\aiofireboggreen.txt && hostlist-compiler -c C:\Users\{username}\Documents\AdGuard\config\aiofirebogblue.json -o C:\Users\{username}\Documents\GitHub\AIO-Firebog-Blocklists\aiofirebogblue.txt && hostlist-compiler -c C:\Users\{username}\Documents\AdGuard\config\aiofirebog.json -o C:\Users\{username}\Documents\GitHub\AIO-Firebog-Blocklists\aiofirebog.txt