I have some code that runs fine when I am running it logged in. However, when I run it from task scheduler it fails. It is failing on the first line that points to a network drive.
os.listdir(path)
Does anyone know why this is happing?
Thanks,
Forest
Are you running the task as a different user? make sure that user has access to the location.
Posting a specific error message is helpful. There are lots of ways a Python function can fail.