2011-01-23 79 views
0

是否可以创建一个DOS脚本,每隔10分钟将2000个文件移动到另一个文件夹?DOS批处理文件每10分钟移动2000个文件

例如:

C:\ MyFolder文件\

每10分钟2000个移动文件到C:\ MyNewFolder \

谢谢!

+0

可能感兴趣的:http://stackoverflow.com/questions/364367/fastest-way-to-move-files-on-a-windows-system – Fionnuala 2011-01-23 17:16:08

回答

0

我会使用类似xcopy的建议,但我会使用日期标志来指定只复制新文件。只是省略日期,它只会复制较新的文件。

 

    /C   Continues copying even if errors occur. 

    /D:m-d-y  Copies files changed on or after the specified date. 
       If no date is given, copies only those files whose 
       source time is newer than the destination time. 

    /E   Copies directories and subdirectories, including empty ones. 

xcopy C:\Source Z:\Destination /C /D /E

+0

再次阅读问题。他不想复制文件;而是他想每10分钟左右做一次手术。 – SuperSaiyan 2011-01-23 17:31:40

相关问题