[英]write a btach file to copy files from one network folder to another network folder
I am having a pdf storage folder on network in which all users used to store their all files for sharing each other . 我在网络上有一个pdf存储文件夹,所有用户过去都在其中存储所有文件以便彼此共享。 Now I need to copy all those files from that folder to another folder which is on same network but on different server.
现在,我需要将所有这些文件从该文件夹复制到位于同一网络但位于不同服务器上的另一个文件夹。
Use xcopy and pass in the UNC path of the source and destination. 使用xcopy并传入源和目标的UNC路径。 For help on xcopy, run:
有关xcopy的帮助,请运行:
xcopy /?
Could you be more precise regarding your OSes, because i think that the answers may vary greatly depending on it. 您能否更精确地说明您的操作系统,因为我认为答案可能会因其而异。
If it's a windows box, i'd recommend the use of robocopy, which can handle retries, mirroring, speed capping and much more. 如果是Windows盒,我建议您使用robocopy,它可以处理重试,镜像,速度限制等等。 You can find it here
你可以在这里找到
You will run into problems if any network files are in use at the time of the copy. 如果在复制时正在使用任何网络文件,则会遇到问题。 Make sure you talk with your network administrator and managers to arrange a time that users can leave that directory alone so that your copy will complete without any exceptions.
确保与您的网络管理员和经理联系,以安排用户可以单独保留该目录的时间,这样您的副本将毫无例外地完成。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.