%TIMESTAMP% Command not downloading previous month's file – any advice?
Hi
I am trying to get the WinSCP command line to download a file that has last month's (April) Month (
Time of writing is 17th May 2024 so I am expecting the command below to download my April 2024 file located on the remote server – Filename is
The syntax I am using is:
The script output is:-
I am using the latest version of WinSCP - 6.3.3
(Time of writing is 20/5/24)
I am trying to get the WinSCP command line to download a file that has last month's (April) Month (
MM
) and Year (YYYY
) number embedded within the filename.
Time of writing is 17th May 2024 so I am expecting the command below to download my April 2024 file located on the remote server – Filename is
042024.CSV
The syntax I am using is:
Get delete "*%TIMESTAMP-M#MMYYYY%*.CSV
Does anyone have any ideas pleaseNo file matching '*%TIMESTAMP-M#MMYYYY%*.CSV' found.
I am using the latest version of WinSCP - 6.3.3
(Time of writing is 20/5/24)
Last edited by bagdrums on 2024-05-20 12:23; edited 2 times in total