RMDir /REBOOTOK behaviour
I would be surprised if this hasn't been mentioned before. I searched this forum and the bug tracker and couldn't find anything relevant. My apologies if this has already been discussed.
It appears that when RMDir /REBOOTOK attempts to delete a directory that does not exist, the RebootFlag is set to true. Note that this does not occur when Delete /REBOOTOK attempts to delete a file that does not exist.
I have attached a script that demonstrates this.
Is this a bug with RMDir? I believe it should behave the same as Delete and realize that the directory does not exist, therefore no reboot is required.