2011-01-23 6 views
0

10分ごとに2000ファイルを別のフォルダに移動するDOSスクリプトを作成できますか?例えば10分ごとに2000ファイルを移動するDOSバッチファイル

C:\ MyFolderを\

10分ごとにCに2000のファイルを移動:\ MyNewFolder \

ありがとうございます!

+0

興味のある:http://stackoverflow.com/questions/364367/fastest-way-to-move-files-on-a-windows-system – Fionnuala

答えて

0

xcopyのようなものをお勧めしますが、dateフラグを使って新しいファイルをコピーするように指定します。日付を省略すると、新しいファイルだけがコピーされます。

 

    /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

関連する問題