There is a script that synchronizes the directory to a remote server. If files that can not be read are encountered during synchronization, the synchronization stops and the script ends. In the broad gulls:
Exception when calling "Check" with "0" arguments: Can't open file '***.DBF'.
System Error. Code: 32. The process can not access the file, since this file is occupied by another process
How can I skip such files so that the synchronization is not completed, but continued?
Found that in scripts you can use "option batch continue". But how to do this in the .NET assembly?