I have a simple script that exports and downloads a shapefile and stores it to my local desktop. I recently added these steps to simply move the file to a Citrix Sharefile location:
source = r'C:\temp\RAES Somerset Backups'
destination = r'S:\Shared Folders\........'
allfiles = os.listdir(source)
for f in allfiles:
shutil.move(os.path.join(source,f),destination)
When running the script in a Jupyter notebook, it works are expected. Though, when I try to schedule this through Task Scheduler on Windows 10, the file does not move to the shared location.
Any ideas???