you are viewing a single comment's thread
view the rest of the comments
[–] 6 points 2 years ago (1 child)

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?

  • source
  • parent
  • hideshow 2 child comments
  • [–] 5 points 2 years ago (1 child)

    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.

  • source
  • parent
  • hideshow 2 child comments