Re: Using monthname and year function in WinSCP
Well, this seems to be a VB question, not a WinSCP question.
Anyway, one thing I can see is missing space between the month name and year:
Alternatively, WinSCP itself can generate such name format. Though it can subtract only days, not months:
https://winscp.net/eng/docs/scripting#timestamp_batch
Anyway, one thing I can see is missing space between the month name and year:
MonthName((Month(DateAdd("m",-1,Date()))),True) & " " & Year(Date())
Alternatively, WinSCP itself can generate such name format. Though it can subtract only days, not months:
"""put \\myserver\ABC\HMC-Data_for_ABC%TIMESTAMP-28D#MMM YYYY%.csv """
https://winscp.net/eng/docs/scripting#timestamp_batch