Windows – Transfer files older than N days with WinSCP

datewindowswinscp

How to transfer files with WinSCP that are older than N days? It seems there is no such option inside. But could it be done with scripting/cmd mix?

Best Answer

Use a file mask with a time constraint:

  • Upload:

    put C:\local\path\*.*<5D /remote/path/
    
  • Download:

    get /remote/path/*.*<5D C:\local\path\