How can I alter the following VBscript so that it only uploads files created on the same day the script is executed, and not any old files?
' VBS Script Generated by CuteFTP (TM) macro recorder.
' Create TEConnection object
Set MySite = CreateObject("CuteFTPPro.TEConnection")
' Initialize remote server host name, protocol, port, etc.
MySite.Host = "ftpserver"
MySite.Protocol = "SFTP"
MySite.Port = 22
MySite.Retries = 30
MySite.Delay = 30
MySite.MaxConnections = 2
MySite.TransferType = "AUTO"
MySite.DataChannel = "DEFAULT"
MySite.AutoRename = "OFF"
' WARNING!!! SENSITIVE DATA: user name and password.
MySite.Login = "userid"
MySite.Password = "********"
MySite.SocksInfo = ""
MySite.ProxyInfo = ""
' Connect to remote server
MySite.Connect
MySite.Upload "d:\test\*.*", "/ftpserverdir"
MySite.Disconnect
The local directory "d:\test\" has a thousands of files and I want to prevent any files that have already been uploaded from being transfered every time the script runs again. Deleting any files that once they have been uploaded is not an option. Also, once the files are uploaded to the FTP server, they are immediately moved from the directory on the FTP server to a shared directory on the internal LAN.
Any suggestions?
' VBS Script Generated by CuteFTP (TM) macro recorder.
' Create TEConnection object
Set MySite = CreateObject("CuteFTPPro.TEConnection")
' Initialize remote server host name, protocol, port, etc.
MySite.Host = "ftpserver"
MySite.Protocol = "SFTP"
MySite.Port = 22
MySite.Retries = 30
MySite.Delay = 30
MySite.MaxConnections = 2
MySite.TransferType = "AUTO"
MySite.DataChannel = "DEFAULT"
MySite.AutoRename = "OFF"
' WARNING!!! SENSITIVE DATA: user name and password.
MySite.Login = "userid"
MySite.Password = "********"
MySite.SocksInfo = ""
MySite.ProxyInfo = ""
' Connect to remote server
MySite.Connect
MySite.Upload "d:\test\*.*", "/ftpserverdir"
MySite.Disconnect
The local directory "d:\test\" has a thousands of files and I want to prevent any files that have already been uploaded from being transfered every time the script runs again. Deleting any files that once they have been uploaded is not an option. Also, once the files are uploaded to the FTP server, they are immediately moved from the directory on the FTP server to a shared directory on the internal LAN.
Any suggestions?