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

martin

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 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.
haleem02

sftp get command to send exact number of files only with filename like IX*.TXT

Hi Experts
I am new to this.
Using winscp 4.2.7 on windows server 2012
My requirement: The files should transfer only when count is 3 and filename like IX*.TXT from Linux server to Windows server using WINSCP bat file.
Is there any option to get command to send only when count is 3 and filename like IX*.TXT ?