We help IT Professionals succeed at work.

Copy 20 files at a time from drive G to drive H

donpick
donpick asked
on
219 Views
Last Modified: 2017-03-12
Running Windows 7 Pro on a Dell T3400.

I need to copy a large number of files from drive G to drive H.  Both drive G and H are usb drives.  They are connected to the T3400.

Drive G contains files in multiple directories.

Currently drive H has no data on it.

The T3400 is not a fast computer.  Drive G has about 20,000 files on it.  If I use Robocopy to copy all the files on drive G to drive H, the I/O is going to slow down the computer considerably.  

I'd like to somehow copy say 20 files at a time from drive G to drive H

My knowledge of system programming and scripting is limited.  
I thought if I could create a simple batch file containing file names on drive G then I could edit the batch file and make sure only 20 files were listed in the batch file.

I tried creating a list of files to be copied by using the DIR command:

G:
Dir *.* /b > c:\filelist.txt

This produces a list of files but some of them are listed as:
G:\Movies\Purple.avi.<Dir>\Video_ts

I don't know how I would be able to write a script which would remove the <Dir> from the list.

There must be a simpler way to do this.

What process would you create to perform this task?   Please give me a DETAILED answer.

Thank you.
Comment
Watch Question

Mal OsborneAlpha Geek
CERTIFIED EXPERT

Commented:
the /IGP parameter could be used to slow the copy down, so it could run in the background without slowing the machine much. Try with maybe /IGP:100 then adjust as needed.
Dr. KlahnPrincipal Software Engineer
CERTIFIED EXPERT

Commented:
If the drives are identical sizes, image G (data) to H (empty) using your favorite imaging tool.  Most good imaging tools allow throttling the transfer bandwidth.
A lack of information provides a lack of a decent solution.
CERTIFIED EXPERT
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION
Bill PrewTest your restores, not your backups...
CERTIFIED EXPERT
Expert of the Year 2019
Top Expert 2016
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION

Author

Commented:
Mr Prew:

If I could wish for the perfect solution:
- some application which could copy 20 files and know the name of the 20th file so it knows where to start again.
- OR I could leave my pc on all night and the copy application could detect the overall amount of I/O use and note when the I/O had decreased so the copying could use more system resources.

Also, I included the /B option in my Dir command and still there were the strange characters after the file name.

Mr Green:
  Thank you for the link.  I will try this.
CERTIFIED EXPERT
Distinguished Expert 2019

Commented:
if you try richcopy - i'm curious to see your result
i tried it too ( on his recommendation) and it seems to work; but the results are not Always 100%
Bill PrewTest your restores, not your backups...
CERTIFIED EXPERT
Expert of the Year 2019
Top Expert 2016
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION

Author

Commented:
Mr. Prew:

Yes, I tried the /MT:1 option, Robocopy was running all night and was still running in the morning.  
I am not an expert with Robocopy.  It seems it can produce a list of files.  I'm going to be away from my pc until Saturday so on Saturday I will see if Robocopy can create a list of files.

If so then I could edit the list and see if I can find a way to insert an xcopy command on each line in the list file.  
Why xcopy? Well, I don't know of any way to feed a list of files to Robocopy and have it copy files in a list.

Yes, I will look at UltraCopier .  Did not know this exists so I really appreciate this links you provide.

Nobus:
You have been very helpful in the past.  I'll try Richcopy on Saturday and let you know.

Author

Commented:
I have other tasks which must be done so I will close this question now.

Author

Commented:
Thanks to all .

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions