Synchronize of file currently in use – how to solve?
Hello Martin,
I have another issue I was fighting with and I am not sure what is the best solution, if there exists any switch or what command to use? I synchronize MS Outlook folder on daily basis and Outlook is obviously opened whole day. The error is that when the scheduled script run Outlook is opened at the moment and winscp cannot copy file to server. Of course the same issue with all files that are opened by some windows process/service.
What do you suggest?
Here is the error line:
I am attaching log also.
I have another issue I was fighting with and I am not sure what is the best solution, if there exists any switch or what command to use? I synchronize MS Outlook folder on daily basis and Outlook is obviously opened whole day. The error is that when the scheduled script run Outlook is opened at the moment and winscp cannot copy file to server. Of course the same issue with all files that are opened by some windows process/service.
What do you suggest?
Here is the error line:
Here is my script:System Error. Code:33 The process cannot access the file because another process has locked a portion of the file
option batch off option confirm off open sftp://user:pwd@domain -rawsettings SendBuf=0 SSHsimple=0 PingType=1 PingIntervalSecs=10 Compression=1 -timeout=10 -hostkey="ssh-rsa 3072 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx" option transfer binary option exclude "[~]*" synchronize remote -mirror "c:\Users\user1\AppData\Local\Microsoft\Outlook\" "/cecho/Cloud" Close