Avatar of donpick
donpick
 asked on

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

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.
* USBDellWindows 7Windows Batch

Avatar of undefined
Last Comment
donpick

8/22/2022 - Mon
Mal Osborne

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. Klahn

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.
ASKER CERTIFIED SOLUTION
Alex

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
donpick

ASKER
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.
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
nobus

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%
SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
donpick

ASKER
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.
donpick

ASKER
I have other tasks which must be done so I will close this question now.
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
donpick

ASKER
Thanks to all .