Download from SFTP
I have a quite easy task – but somehow it does not work.
With WinSCP GUI, I can manually add the the connection and download files – it is just .txt files.
I however, just want a script to do this, so did try do everything from command line first. I try manually from command line calling WinSCP.
And run the
Everytime if for some reason can download a folder called "processing" – but that just on first .txt file it try and download it stops and show error with error code 4.
If I just try and download 1 of the txt files it also just show error code 4. Everything works fine from WinSCP gui where I can download files.
With WinSCP GUI, I can manually add the the connection and download files – it is just .txt files.
I however, just want a script to do this, so did try do everything from command line first. I try manually from command line calling WinSCP.
And run the
get / * -filemask=*.txt c:\folder\
If I just try and download 1 of the txt files it also just show error code 4. Everything works fine from WinSCP gui where I can download files.