Re: Copying a file from SFTP with date time
You seem to be mixing WinSCP and Windows commands.
See this (otherwise unrelated) article to learn how to work with environment variables in WinSCP script:
https://winscp.net/eng/docs/guide_protecting_credentials_for_automation#scripting
See this (otherwise unrelated) article to learn how to work with environment variables in WinSCP script:
https://winscp.net/eng/docs/guide_protecting_credentials_for_automation#scripting