Try to open a file with exclusive access from a bat-file.
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.