FTP server via command-line
Is there an FTP server that can be run via the command line?
Ideally I want a self-contained server.exe file (DLL files and configuration files are fine) that I can set up, start/stop via the command line, without having to install or setup as a service.
Solution 1:
Have a look at CrushFTP
CrushFTP is a powerful file server supporting standard secure file transfer protocols. The 'Crush' in CrushFTP comes from its ability to compress transfers on the fly seamlessly making for faster transfers! Combining the inline compression support with the high speed transfer options, you have the fastest file transfer options for high latency connections possible.
In about 10 clicks you can be fully configured and ready to login.
Solution 2:
I'm now using FTPDMIN, which is not ideal due to lack of security, but for my purposes (unit tests) its fine.
Simple ad-hoc file transfer Windows FTP server.
ftpdmin v. 0.96 Jun 7 2004
Using 'C:\' as root directory
ftpdmin ready to accept connections on ftp://192.168.0.101
220 Minftpd ready
USER anonymous
331 pretend login accepted
PASS [email protected]
230 fake user logged in
SYST
215 WIN32 ftpdmin v. 0.95
PWD
257 "/"
TYPE I
200 Type set to I
PASV
227 Entering Passive Mode (192,168,0,101,5,178)
CWD /
250 CWD command successful
LIST
150 Opening connection
226 Transfer Complete
PASV
227 Entering Passive Mode (192,168,0,101,5,178)
SIZE /bottles.jpg
213 18003
MDTM /bottles.jpg
213 20040509122422
RETR /bottles.jpg
150 Opening BINARY mode data connection
226 Transfer Complete