The description of WaitForFile - Play With New Friends
Try to open a file with exclusive access. This can be very useful in a bat-file if you want to process a specific file that may be opened in another program (word for example). WaitForFile will block until it is able to open the specified file.