@notverypunny said in Task Schedule Failed:
@WrCombs said in Task Schedule Failed:
SO Iknow whats causing the issue, I'm just not sure how to fix it.
Windows 11 device, Task is scheduled to start a program
c:\program files (x86)\Parent Director\Subdirectory\program /switch1 /switch2 /switch3
It shows Last Run results
0x4
Which I find out means "System can't access path/file"I Changed user, and tried running it again (different admin user) no change, same status.
I go to CMD to see if I can path to it - Can't find path specified - tried writing it a different way (with spaces, without spaces)
Having a hard time understanding why it can't run this program - it's needed to import sales into a different system every day.
The owner of the software suggested making sure DotNetFramework 4.5 or higher was installed and repair it. which it is, 4.8 is installed currently.
Any ideas how I can resolve this?
Ideas:
1- try using single or double quotes around the path, simple way to get the "proper" path is sometimes to use tab-completion2- if the above doesn't work, maybe try having your scheduled task call a batch or .cmd file (or powershell) which invokes the executable
Quotes around the path and working directory. Yes