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.
Unix users know and love it, now Windows users have the ability to give a single file multiple names. If you have the existing file C:\DOCS\FILE.DOC and execute the command FileLink C:\MEMO\ANOTHER.DOC C:\DOCS\FILE.DOC, the data of the file will exist only once, but it is accessible in 2 directories using 2 different names.
Limitations:
The link must be on the same disk.
The disk-drive must be formatted using NTFS 5 or higher.NT2000 or higher.