0

I am looking for a way to change a script from ftp to sftp and I need to integrate the use of a private key. So this is what I have running currently:

abc.txt file:

user
pass
ascii
prompt y
mget **.csv
mget abc.a0000*
bye

aaa.bat file:

c:
cd \Folder
ftp -s:abc.txt 256.256.256.256
copy *.csv \\location\*.*
copy *.cyc* \\location\*.*

I don’t have much experience so I would appreciate your help with this. Thank you very much.

Martin Prikryl
  • 167,268
  • 50
  • 405
  • 846
Zeru
  • 11
  • 3
    Windows currently does not have an SFTP client built into the OS. Easy solution would be to install a 3rd party client like WinSCP or PSFTP. But you could also go the route of installing WSL on Windows. – Squashman Feb 09 '22 at 17:23
  • 3
    See [Replace Windows command FTP -s:E:\FtpScript.txt with SFTP?](https://stackoverflow.com/q/21102193/850848) – Martin Prikryl Feb 09 '22 at 17:23

0 Answers0