0

Is it possible to create a DOS script that will move 2000 files to another folder every 10 minutes?

For example:

C:\MyFolder\

Every 10 minutes move 2000 files to C:\MyNewFolder\

Thank you!

user53885
  • 3,809
  • 11
  • 33
  • 43
  • May be of interest: http://stackoverflow.com/questions/364367/fastest-way-to-move-files-on-a-windows-system – Fionnuala Jan 23 '11 at 17:16

2 Answers2

0

I would use something like xcopy as recommended, however I would use the date flag to specify only copying new files. Just omit the date and it will copy only newer files.


  /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

Fred
  • 402
  • 4
  • 9
0

Use Schtasks.

You may want to look here: http://technet.microsoft.com/en-us/library/bb490996.aspx

UltraInstinct
  • 43,308
  • 12
  • 81
  • 104