Very useful tip - eviltoast
  • Tlaloc_Temporal@lemmy.ca
    link
    fedilink
    arrow-up
    6
    ·
    1 year ago

    This seems like a pretty specific use case, but also pretty common. A system function to delete the file that called it should cover that entirely, but I guess psudo-malware is acceptable?

    • Cypher@aussie.zone
      link
      fedilink
      arrow-up
      6
      arrow-down
      1
      ·
      1 year ago

      Pseudo-malware is pretty much the way to go as a developer in my experience.

      I believe his suggestion of a javascript file that deletes itself works only works because javascript gets sandboxed and doesn’t suffer from Windows “flaw” with file locks.

      https://devblogs.microsoft.com/oldnewthing/20230911-00/?p=108749

      While Raymond does offer a solution he’s also completely side stepping any responsibility on Microsoft’s part in creating and perpetuating this problem without offering their own native solution.

      • Buddahriffic@lemmy.world
        link
        fedilink
        arrow-up
        3
        ·
        1 year ago

        That last bit IMO is one reason to argue against him being the best software engineer. He might have the skills, but they are offset by his conflict of interest with MS.