• Brujones@lemmy.world
      link
      fedilink
      English
      arrow-up
      3
      ·
      3 hours ago

      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.

      • OwOarchist@pawb.social
        link
        fedilink
        English
        arrow-up
        2
        ·
        edit-2
        3 hours ago

        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.