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, but not sure how on Windows.
Comment on Windows 11 Copilot now tells you what’s slowing down your PC, while using 1GB RAM itself
Brujones@lemmy.world 4 days agoI 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, but not sure how on Windows.
fuckwit_mcbumcrumble@lemmy.dbzer0.com 4 days ago
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.
Brujones@lemmy.world 4 days ago
Thank you! I will give this a try.