From Newsgroup: comp.os.ms-windows.misc
Peter I use something simular
xcopy d:\aaadir\*.log e:\bbbdir /idechk
This will create the same directory layout as the orginal source but only
copy log files to the target location that are newer than the destination files.
Then do the same command with you *.dat. You could place the two copy
commands into a single batch file so only would have to run the batch file
Hope this helps
--
Frank: MMC TestLab
"This posting is provided "AS IS" with no warranties, and confers no
rights."
"Peter Swampton" <
peter.swam@yahoo.com> wrote in message news:bfm183$n4f$01$
1@news.t-online.com...
I want to perform some tasks with XCOPY and need the detailed syntax for
it.
I want to copy all files with the extensions *.log and *.dat (only those
!) in the directory D:\aaadir
(and recursively in the subdirectories) to the target directory E:\bbbdir.
If one of the subdirectories in D:\aaadir contain a file which matches
e.g. *.log then in the targetdir
the same directory should be created (or if already existing it should be
used instead).
All other files should be touched.
How do I specify the appropriate XCOPY command ?
XCOPY syntax show only options to EXCLUDE files but NOT to INCLUDE them.
cu
Peter
--- Synchronet 3.18b-Win32 NewsLink 1.113