Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: problem with Date

WinSCP does not support environment variable formatting.

You need to generate the script file with the formatted mask using external script. Or use WinSCP .NET assembly.

For both solutions, refer to this related example:
https://winscp.net/eng/docs/script_download_timestamped_filename
karraso

problem with Date

Hello,
This is my first topic, so hello everybody and please be forgiving.
I would like to dowload file via sftp command

get -filemask="AdvCfg_dump_*.log> %date:~3,4%-%date:~8,2%-%date:~11,2% 05:00:00| */" *.* F:\fewa\

where the * in AdvCfg_dump_*.log is current date eg AdvCfg_dump_04062013.log
but %date:~3,4%-%date:~8,2%-%date:~11,2% doesn't work. I would like to copy files with current date only.
How to do it? Is it possible?
Br