Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

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: Wildcard %year% or %month% is not expanded/ignored

There's nothing like %month% nor %year% in WinSCP. How did you come to this syntax?
For the correct syntax, see the %TIMESTAMP%:
https://winscp.net/eng/docs/scripting#timestamp
KlausKoeppen

Wildcard %year% or %month% is not expanded/ignored

Hi,
I use a small batch for automatic backups. The source (to be backuped) is stored for each month in an separate destination folder. The name is (for example : September) : Month_09
With this line (from my batch) I try to build the name of the current month, but it doesnlt work.
  "open sftp://u..:xxxx.your-storagebox.de -hostkey=....,,,,," ^
  "synchronize remote -delete c:\SRC_Backup /Monatssicherungen/Monat_%month%" ^

The wildcard %month% is totally ignored, Monat_ is used as destination.
The same is with %year%
What is wrong?
Best regards Klaus