troubleshooting Question

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

Avatar of donpick
donpick asked on
* USBDellWindows 7Windows Batch
10 Comments3 Solutions229 ViewsLast Modified:
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.
ASKER CERTIFIED SOLUTION
Alex
A lack of information provides a lack of a decent solution.

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 3 Answers and 10 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 3 Answers and 10 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros