Problem with sending files to the Nas

Advertisement

Stas
Joined:
Posts:
1

Problem with sending files to the Nas

When starting .bat error occurs
The process cannot access the file because this file is occupied by another process.
For example, someone has a file open. How can I write in the script so that such errors are ignored and files are skipped. The script itself:
option batch on
option confirm on
open sftp://sshd:111111@192.168.21.521
cd /
synchronize remote \\dc\Рабочая_new /mnt/HD/HD_a2/BackUpShare/  
echo %TIMESTAMP#YYYY-MM-DD HH:NN:SS%
close
exit
Please tell me who knows.

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum