1

I need to know can we transfer file through SFTP using script.

I am able to ping server from my system but when I use ftp command it shows "connection lost" and when I use sftp command it shows "command does not exist".

No external PuTTY or WinSCP can be used.

Thanks in advance!

Martin Prikryl
  • 147,050
  • 42
  • 335
  • 704
Aman Padda
  • 75
  • 1
  • 3
  • 10

1 Answers1

1

Only recent versions of Windows 10 come with Win32-OpenSSH build of OpenSSH tools built in.

In older versions, there's no SFTP support in Windows built-in commands, PowerShell, .NET framework or any other scripting language (like WSH/JScript/VBScript) readily available. On these versions you have to use an external software or a library.

Martin Prikryl
  • 147,050
  • 42
  • 335
  • 704