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

Covacs

Get command with hour and minute on filemask

Hello, I have a command like the following
"C:\Program Files (x86)\WinSCP\WinSCP.com" ^
  /log="logPathOnMyPc.log" /ini=nul ^
  /command ^
    "open sftp://user:pass@IP/ -hostkey=""ssh-rsa RSA""" ^
    "cd /filePathOnServer^
    "lcd filePathOnMyPc" ^
    "get -filemask=*.log.gz>=2023-12-10 07:20<=2023-12-12 15:00 *.log.gz" ^
    "exit"

I intent do download all *.log.gz files between the dates listed.
The issue is that the terminal gives me an error
File not found ' «07:20<=2023-12-12».'

I think it has to do with the space between 2023-12-10 and 07:20, what is the correct way of writing the filemask? I'm not finding it in the docs.