Try using double quotes around the path of batch file. if current working directory matters, set it correctly from task scheduler. And if you share more (like path, error message), someone will help you
– Ozan
1. remove @echo off in the batch file and append pause to it, so you might already see what causes the failure; 2. provide (sample) code of the batch file; 3. it would be very helpful if you'd describe the Windows Task Scheduler settings;
– aschipfl
1 Answers
0
votes
You should uncheck the box that says "Run whether user is logged in or not."
Certain batch functions require permissions to actually work, so if this is being run while no user is logged in, it can cause an error due to insufficient permissions.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more
@echo off
in the batch file and appendpause
to it, so you might already see what causes the failure; 2. provide (sample) code of the batch file; 3. it would be very helpful if you'd describe the Windows Task Scheduler settings; – aschipfl