Zoomed Image

AMSX Scripting Language - Command : waitforfiletounlock

Summary

Wait until a file is no longer locked by another process

Description

Polls the file until it can be opened for writing, up to the specified timeout. Use this before reading or copying a file that may still be written to by another process.

Parameters

ParameterDescription
cmdFile path to wait for
Argument 0Timeout in seconds to wait before giving up

Syntax


WaitForFileToUnlock "File path to wait for", "Timeout in seconds to wait before giving up"

Return to the AMSX Command Reference