I have a local drive that contains a directory per user:
c:\user1\
c:\user2\
c:\user3\
and I have a remote drive (via a share) that contains the same directory tree:
f:\user1\
f:\user2\
f:\user3\
inside each directory can be any number of files but they are all .txt. i've been trying to create a batch file that can iterate on the local directories and copy files newer than X timestamp into the corresponding directory on f:.
is there any way to achieve this using xcopy or copy plus some batch magic?
thanks!
EDIT: to avoid confusion: I need to parse the users directories (can have ANY name), grab the files newer than those copied the last time and copy them to the directory with the same name on F:\
copy . is not what i am trying to do. more like:
for /f "tokens=*" %%a IN ('dir /b c:\users\*') do call dobackup.bat "%%a"
or similar