USA
800 691 9120
UK
01225 704844
We use cookies on our website to analyze website usage and to help secure the website against misuse. Advertising and functional cookies are not used in our site or our web application products.
By clicking “Accept Essential Cookies Only”, you consent to us placing these cookies.
Wait until a file appears on the file system within a timeout period
Polls the file system until the specified file exists or the timeout elapses. Useful for synchronising with external processes that write a file on completion. Can optionally throw an error if the file does not appear within the timeout.
| Parameter | Description |
|---|---|
| cmd | File path to wait for |
| Argument 0 | Timeout in seconds to wait before giving up |
| Argument 1 | True to throw an error if the file does not appear within the timeout; False to continue silently |
WaitForFileExists "File path to wait for", "Timeout in seconds to wait before giving up", "True to throw an error if the file does not appear within the timeout; False to continue silently"