That doesn't appear to work,
Is used Powershell to lock my text file before running test code
This is my code: -
<AMIF ACTIVITY="file_exist" FILE="%elockbox & "\test.txt"%" MODE="accessible">
</AMIF>
<AMWAIT ACTIVITY="file" FILE="%elockbox & "\test.txt"%" />
<AMFILESYSTEM ACTIVITY="delete" AM_RETRY="120" AM_RETRYDELAY="10000" SOURCE="%elockbox & "\test.txt"%" />
The code does not wait at the first 3 line above at any stage and I end up with : -
Main](Step 5) File System failed (Error : The process cannot access the file '<directory>\test.txt' because it is being used by another process.)
at the last step