Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

vba to execute ftp script

Status
Not open for further replies.

mikeba1

Programmer
Jan 2, 2005
235
GB
I have the following ftp script which needs to be executed from a button on a form.
Could you advise as to the vba code to perform this


open ftp.mb.com ' ftp server
contu ' user
reylonieluj89 ' password
!:--- FTP commands below here ---
lcd c:\tinover
cd inbox/uk/psi
binary
mput uk_5.txt
disconnect
bye
 
I usually put the script into a text file with a .bat extension. I can call the batch file using a ShellAndClose command provided from

Shell32.Bas, Copyright ©1996-97 Karl E. Peterson

PaulF
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top