Allows you to lock a specified file.
Example
Running this code will set the file "Worksheet.xlsx" to the variable "#path". After, the code will create a list named "%Debug", adding the system process locking file function with the file path "#path".
This is shown in the UBot browser.
set(#path,"{$special folder("Application")}\\Worksheet.xlsx","Global")
shell("cmd /c start \"\" \"{#path}\" \\b")
wait(3)
clear list(%Debug)
add list to list(%Debug,$plugin function("OS Automation.dll", "$system process locking file", #path),"Delete","Global")
load html($replace(%Debug,$new line,"<br>"))