Get command with hour and minute on filemask

Advertisement

Covacs
Joined:
Posts:
1

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.

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum