简体   繁体   English

写入btach文件以将文件从一个网络文件夹复制到另一个网络文件夹

[英]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 你可以在这里找到

Use robocopy.exe available here 使用此处提供的robocopy.exe

example: 例:

robocopy \\\\server1\\c$\\sourcedir \\\\server2\\backup\\server1 /MIR robocopy \\\\ server1 \\ c $ \\ sourcedir \\\\ server2 \\ backup \\ server1 / MIR

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.

相关问题 将文件从一个文件夹复制到另一个文件夹的批处理文件 - Batch file to copy files from one folder to another folder 通过网络复制文件并从同一文件夹Windows中删除文件7 - Copy files over network & delete files from same folder windows 7 如何将随机文件从一个文件夹复制到另一个文件夹(批处理文件) - How to copy random files from one folder to another (a batch file) 根据相似的文件名将文件从一个文件夹复制到另一个文件夹 - Copy files from one folder to another based on similar file name 如何在批处理文件中将选定的文件从一个文件夹复制到另一个文件夹? - How to copy selected files from one folder to another in Batch file? 将文件夹中的唯一文件复制并粘贴到网络上的不同计算机 - Copy and paste unique files from a folder to different computers on network 如何使用批处理文件通过网络文件夹将最新文件复制到另一个文件夹路径 - How to Copy Newest File through Network Folder to Another Folder path using Batch File 如何将网络驱动器上的文件复制到网络上的另一个文件夹并为复制的文件添加时间戳? - How to copy a file on a network drive to another folder on network and add time stamp to copied file? 批处理文件以将文件夹复制到多个网络目标 - Batch file to copy folder to multiple network destinations 批量解压缩子文件夹中的文件,然后根据文件名中的数字将特定文件复制到网络文件夹 - Batch unzip files in child folders, then copy specific files to network folder based on number in file name
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM