Re: Error code 2 but file exists
When the filename contains spaces, so it needs to be quoted:
https://winscp.net/eng/docs/scripting#quotes
get "Customer Refund Preference Report-with Import Date Filter2024-05-14.csv"
https://winscp.net/eng/docs/scripting#quotes