I have a local drive that contains a directory per user:
and I have a remote drive (via a share) that contains the same directory tree:
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?
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"