ftp automation

ScriptFTP

The professional tool to automate FTP, SFTP, FTPS and schedule FTP batch jobs

The forum is now read only. Please, go to the the main ScriptFTP website if you need help.
Post here if you experience file transfer problems or unexpected errors.
I need help creating a script that only take's files modified today.
Hello,

What you will have to do is something like; get today's day with:
Code: Select all$current_day=GETDATE(DAY)
Then get the date information for the remote file:
Code: Select all$file_last_modification_time=GETFILETIME(REMOTE,$remote_file)
Extract from the variable $file_last_modification_time; the day (user the TEXTCUT command)

Then compare the two, example:
Code: Select allIF($file_last_modification_day==$current_day)
HTH.

Zythan
Thank you Zythan