M
Mamun Shaheed
Hi, I need to copy some files from one directory to
another say from c:\abc to d:\xzy
This is a regular job. c:\abc folder contains new files
and existing files as well. I want to copy only new
files. I wrote following script..
@Echo Off
c:
cd abc
for %%f in (*.*) do echo %%f >> list.txt
d:
cd xyz
for %%f in (*.*) do (
type c:\abc\list.txt | FIND %%f >> %%g
if %%g == "" copy %%g d:\xyz
)
Echo on
but it is not working...
how can i match my current directories file names with a
file containing list of file name..
~M$
another say from c:\abc to d:\xzy
This is a regular job. c:\abc folder contains new files
and existing files as well. I want to copy only new
files. I wrote following script..
@Echo Off
c:
cd abc
for %%f in (*.*) do echo %%f >> list.txt
d:
cd xyz
for %%f in (*.*) do (
type c:\abc\list.txt | FIND %%f >> %%g
if %%g == "" copy %%g d:\xyz
)
Echo on
but it is not working...
how can i match my current directories file names with a
file containing list of file name..
~M$