56

Most of the windows SFTP clients (like FileZilla) seem to be GUI-based. I need something I can call from batch files.

Eggplant Jeff
  • 1,749
  • 2
  • 15
  • 20
  • Isn't sftp just ssh. I think you really want something that is capable of scp or rsync via ssh. – Benbob Aug 13 '10 at 13:55
  • wsftp: http://docs.ipswitch.com/WS_FTP125/Help/Tools/English/index.htm?17981.htm?toc.htm – Alexan Sep 14 '16 at 20:55

9 Answers9

49

pscp and psftp are very customizable(options) and light weight. Open source to boot.

http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html

Chris
  • 1,066
  • 8
  • 9
16

WinSCP has the command line functionality:

c:\>winscp.exe /console /script=example.txt

where scripting is done in example.txt.

See http://winscp.net/eng/docs/guide_automation

Refer to http://winscp.net/eng/docs/guide_automation_advanced for details on how to use a scripting language such as Windows command interpreter/php/perl.

FileZilla does have a command line but it is limited to only opening the GUI with a pre-defined server that is in the Site Manager.

Martin Prikryl
  • 188,800
  • 56
  • 490
  • 992
Nasri Najib
  • 1,261
  • 11
  • 6
6

WinSCP can be called from batch file:

"C:\Program Files\WinSCP\WinSCP.exe" /console

Example commands:

option batch on 
option confirm off  
option transfer binary 
open sftp://username@hostname:port -hostkey="ssh-rsa " 
Martin Prikryl
  • 188,800
  • 56
  • 490
  • 992
user3454962
  • 61
  • 1
  • 1
6

Cygwin + sftp/scp natrually

MooGoo
  • 46,796
  • 4
  • 39
  • 32
1

www.bitvise.com - sftpc is a good command line client also.

1

LFTP is great, however it is Linux only. You can find the Windows port here. Never tried though.

Achtunq, it uses Cygwin, but everything is included in the bundle.

Aram Paronikyan
  • 1,598
  • 17
  • 22
0

This little application does the job for me. I could not find another CLI based client that would access my IIS based TLS/SSL secured ftp site: http://netwinsite.com/surgeftp/sslftp.htm

SimonJ
  • 1
0

bitvise tunnelier works really well

ArchieVersace
  • 203
  • 2
  • 6
-2

Filezilla is great and it can support command line arguments.

Jorge Ferreira
  • 96,051
  • 25
  • 122
  • 132
Matt Williamson
  • 39,165
  • 10
  • 64
  • 72
  • You're going to want to put in/escape your closing parenthesis. – Steven Aug 13 '10 at 13:54
  • 6
    No, the command line arguments are just for opening the UI already connected to a certain server. I want to script it with a batch file, the entire process has to be command-line driven. – Eggplant Jeff Aug 13 '10 at 13:58