Angie
2005-02-23 17:03:46 UTC
Hi there,
I'm trying to create a batch file which will copy all files from a
particular directory structure, into another area with similar
directory structure
ie:
c:\backup\inputdata1\book1\*.*
c:\backup\inputdata1\book2\*.*
into
c:\inputdata1\book1\*.*
c:\inputdata1\book2\*.*
Normally, I would use xcopy with some appropriate switches... but, I
need to sleep for a few seconds in between each file.
I've been looking at some scripts which use dir, and a for loop to
echo. the copy commands to another file, but I'm stuck on trying to
create the target filename from the source filename.
Another idea I had was to use the /w switch on xcopy, but I can't
figure out how to pipe in an enter....
Does anyone have any suggestions??
Angie
I'm trying to create a batch file which will copy all files from a
particular directory structure, into another area with similar
directory structure
ie:
c:\backup\inputdata1\book1\*.*
c:\backup\inputdata1\book2\*.*
into
c:\inputdata1\book1\*.*
c:\inputdata1\book2\*.*
Normally, I would use xcopy with some appropriate switches... but, I
need to sleep for a few seconds in between each file.
I've been looking at some scripts which use dir, and a for loop to
echo. the copy commands to another file, but I'm stuck on trying to
create the target filename from the source filename.
Another idea I had was to use the /w switch on xcopy, but I can't
figure out how to pipe in an enter....
Does anyone have any suggestions??
Angie