Look at this:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/movefileex.asp
Quote:
|
If dwFlags specifies MOVEFILE_DELAY_UNTIL_REBOOT and lpNewFileName is NULL, MoveFileEx registers the lpExistingFileName file to be deleted when the system restarts. If lpExistingFileName refers to a directory, the system removes the directory at restart only if the directory is empty.
|