|script file (ftpscript) for ftp (based on test.txt f/e):|
ftp -n -s\workdir\ftpscript > ftpout
for /f "tokens=* delims=" %%a in (ftpout) do (
if /i "!cc!" equ "!main!" call !exec!)
this is more cumbersome than downloading the file and testing "if exist", but if file is large, avoids bandwidth & time consumption since the file's not needed anyhow.
I would use "at" daemon (time/task scheduler) to set up the 15-minute intervals (assum. tsched is activated).