I haven’t figured out how do make a script that can delete a directory that needs admin rights. Instead, I created a script that pings the directory once per minute and tosses up a notification if it exists. Then I just go and delete it. It’s good enough for me, since it only happens 2x-3x per week.
I haven’t figured out how do make a script that can delete a directory that needs admin rights.
Yeah … me neither, I guess. I know how to do that on Linux easily enough (doesn’t even need a proper script, just a root cron job), but not sure how on Windows.
I haven’t figured out how do make a script that can delete a directory that needs admin rights. Instead, I created a script that pings the directory once per minute and tosses up a notification if it exists. Then I just go and delete it. It’s good enough for me, since it only happens 2x-3x per week.
Use task scheduler and click the run as administrator option. Also make sure you have the option set to run hidden, or run whether logged in or not.
Thank you! I will give this a try.
Yeah … me neither, I guess. I know how to do that on Linux easily enough (doesn’t even need a proper script, just a root cron job), but not sure how on Windows.