Re: sftp get command to send exact number of files only with filename like IX*.TXT
It's not difficult to implement using WinSCP .NET assembly and for example PowerShell script.
Use
https://winscp.net/eng/docs/library_session_enumerateremotefiles
Btw, you urgently need to upgrade. WinSCP 4.2.7 is 10 years old.
Use
Session.EnumerateRemoteFiles
to retrieve list of files matching your criteria, then check that there are three of those and download.
https://winscp.net/eng/docs/library_session_enumerateremotefiles
Btw, you urgently need to upgrade. WinSCP 4.2.7 is 10 years old.