Handle new files after sync
Hey guys,
i'm syncing a remote ftp dir to my local drive. My target is to handle all NEW synced files.
At the moment i'm using a batch file, which takes the "newest file" and does something to it:
The problem is: if there are e.g. two or three new files since the last sync, the batch only takes the newest file.
I thought about do xml logging and parse it to some python code or something to compare "before-sync <-> after-sync" and find out the filenames of the newest files. But i don't get it.
Is there any more easy way? Do you have any hint?
Thanks in advance...
i'm syncing a remote ftp dir to my local drive. My target is to handle all NEW synced files.
At the moment i'm using a batch file, which takes the "newest file" and does something to it:
for /f "delims=" %%a in ('dir /a-d /b /od *.zip') do set "newest=%%a"
The problem is: if there are e.g. two or three new files since the last sync, the batch only takes the newest file.
I thought about do xml logging and parse it to some python code or something to compare "before-sync <-> after-sync" and find out the filenames of the newest files. But i don't get it.
Is there any more easy way? Do you have any hint?
Thanks in advance...