python-3.xcmdwindows-task-schedulernetwork-drive

use network drive in task scheduler


I have a python programm which has a path to a network drive, when I run this programm with cmd, i get the error that cmd can not find the path. I should run the programm from windows task scheduler, What is the solution?

EXPORT_PATH = 'Z:\DB-Maintenance\dump\\' + CLIENT

Solution

  • the solution is : define the path like : \\\\server\share

    it needs 4 backslashes.