I am trying to run a python (3.8.8) script with Windows task scheduler. I can run the script without any problems when running through Spyder console.
When I try to run the script via task scheduler it can't access the mapped drive address, but runs rest of the script fine.
The error that it throws is: [WinError 3] The system cannot find the path specified
I have tried to define network path with letter name and UNC reference, but in vain (works fine when running via Spyder though). e.g
1.path=r'Z:\FolderName' 2.path=r'\ServerName\FolderName'
While setting up the Windows task scheduler I have setup the optional arguments too, considering rest of the script runs fine, don't think there is any setup related issue.
Mapped drive is used to save files copied from local system.
Any pointer in the right direction will be appreciated!