Andy Maesen
Andy Maesen
As far as i know, it's never possible to delete a file when in use. Not even unlinking it. The only thing i can think of that would work would...
Didn't think of that, bat files can indeed delete themselves. Doesn't even have to be a long one. This should work (notepad for test) ``` $ProcessName = "notepad" $CheckIntervalSeconds =...
I think this can still sometimes trip over itself if the nob process doesn't exit fast enough. Seeing the circumstances, i don't think it's that weird. If we want the...
The script can wait for the process to exit, sidestepping the race condition completely. It can then delete the old nob build and itself, leaving just the new build behind.
I was fairly tired when i posted that, didn't come up that you could just run the script without saving it as a file. But running it like that is...