Is it possible to pipe the contents of a folder on an SFTP site to a local file similar to window sinnate ftp.exe program where the syntax:
dir /MainDir/SubDir c:\test\ftp\CurrentContents.txt
but the same syntax does not work with SFTP.exe. I need to be able to process one file name at a time in a powershell script and I can see no way to pass file names from the SFTP.exe program to the powershell script and back without being able to parse a text file with directory contents.
If anyone has any ideas or suggestions please let me know. thanks rp