Re: Get ftp files with timestamp + filename
FTP directory has files names as00.csv,01.csv,02.csvand so on.
Earlier you wrote that "I want to get filename as YYMMDD(File name) format (eg:19062400),". Now you claim something entirely different.
FTP directory has files names as00.csv,01.csv,02.csvand so on.
No matching files found 190625*
winscp> get "%TIMESTAMP#yymmdd%*.csv" "c:\PBI-files\"
No file matching '190625*.csv' found.
get -neweronly "%TIMESTAMP#yymmdd%*.csv" "c:\PBI-files\"
No file matching '190625*.csv' found.
mget -neweronly "%TIMESTAMP#yymmdd%*.csv" "c:\PBI-files\"
No file matching '190625*.csv' found.
00.csv, 01.csv, 02.csv and so on.
get -neweronly "%TIMESTAMP#yymmdd%*.csv" "c:\PBI-files\"
-neweronly and %TIMESTAMP% is suspicious too, but hopefully you know what you are doing).
open ftp://usrname:password.urlftp.com/
binary
get -neweronly "*.csv" "c:\PBI-files\*.%TIMESTAMP#yymmdd%.csv"
exit
"C:\Program Files (x86)\Ipswitch\WS_FTP 12\wsftppro.exe"
-s "sftp://USERNAME:PASSWORD@ftpus.pointclickcare.com/USERNAME/logs/*.sqb"
-d "local:C:\PccDataRelay\LogDownloads\"
-rename tx_[yyyy]-[mm]-[dd]_[hh]-[tt]-[ss]_[OnlyName].[OnlyExt]
-move "/USERNAME/logs/transferred/"
cd C:\PccDataRelay\TestDownloads
"C:\Program Files (x86)\WinSCP\winscp.com" /ini=nul /log=C:\PccDataRelay\AuditLogs\incremental_download.log /command ^
"open sftp://USERNAME:PASSWORD@ftpus.pointclickcare.com/USERNAME/logs/ -hostkey=""ssh-rsa 2048 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx""" ^
"get /USERNAME/logs/*.sqb" ^
"exit"