copy files
Posted: 05 Mar 2013 07:31
I have a file adapter.txt in 100 different locations(paths).and i am trying to copy althose instances of adapter.txt to a new location(path)
I have written like this
copy C:\myfile\one\adapter.txt C:\Newpath
copy C:\myfile\two\adapter.txt C:\Newpath
copy C:\myfile\three\adapter.txt C:\Newpath
copy C:\myfile\four\adapter.txt C:\Newpath
copy C:\myfile\five\adapter.txt C:\Newpath
.
.
.
.
.
.
.
.
.
copy C:\myfile\hundred\adapter.txt C:\Newpath
However it copies only one instance of adapter.txt instead of all 100 instances
since the file name is only same name of all 100 instances adapter.txt
pls suggest.
I have written like this
copy C:\myfile\one\adapter.txt C:\Newpath
copy C:\myfile\two\adapter.txt C:\Newpath
copy C:\myfile\three\adapter.txt C:\Newpath
copy C:\myfile\four\adapter.txt C:\Newpath
copy C:\myfile\five\adapter.txt C:\Newpath
.
.
.
.
.
.
.
.
.
copy C:\myfile\hundred\adapter.txt C:\Newpath
However it copies only one instance of adapter.txt instead of all 100 instances
since the file name is only same name of all 100 instances adapter.txt
pls suggest.