Highlights
All Snippets
Top 100 Snippets
Librarians
gbCodeLib

By Language
VB6
JavaScript
Perl
HTML
SQL
Java
DOS

GBIC >> Source Code >> Visual Basic >> Snippet

Upload file (Freeware EZ-FTP)


'I've used this freeware FTP control - reliable and very easy to use!
' http://www.coolstf.com/activex.html    EZFTP

'Set parameters
FTP.RemoteAddress = www.domain.com
FTP.RemoteDirectory = / folder /
FTP.Username = "username"
FTP.Password = "psw"

'make a connection
FTP.Connect

'upload a file
FTP.RemoteFile = "myfile.txt"
FTP.LocalFile = "c:\myfile.txt"
FTP.PutFile

'done - break the connection
FTP.Disconnect