Updating a script currently being ran by Task Scheduler on Windows
- by orangechicken
I have a scheduled task that runs a script on a ahem schedule ahem that updates a local git repo. This script is a file in this local git repo.
Currently, what I'm seeing is that the script is ran, git complains that permissions are denied to write to file which actually results in the script being deleted! The next time the scheduled task runs the script file is now missing!
How can I ensure that when I pull changes to this script from the repo that the file is actually updated?