wait for modifying on windows