By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,469 Members | 1,259 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,469 IT Pros & Developers. It's quick & easy.

looking for code to copy a file from a ftp location.

P: n/a
Hi,

My application can show employee pictures that are on the local hard drive.
In case the picture is not there, i want to get it from my (anonymous) ftp
site.
The application should run without anny add ons.
So i am looking for some simple code to get this function working:
ftpcopy (ftp://mysite/mypicture;c:\\picturemap\mypicture)
Nov 13 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
You can use the Windows ftp client. You'll have to write your ftpcopy()
function in VBA to call the ftp client program using Shell(). Read the
Access Help article on Shell() and the Windows O/S Help article on ftp.

--
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)

dik mus wrote:
Hi,

My application can show employee pictures that are on the local hard drive.
In case the picture is not there, i want to get it from my (anonymous) ftp
site.
The application should run without anny add ons.
So i am looking for some simple code to get this function working:
ftpcopy (ftp://mysite/mypicture;c:\\picturemap\mypicture)

Nov 13 '05 #2

P: n/a
dik mus wrote:
Hi,

My application can show employee pictures that are on the local hard drive.
In case the picture is not there, i want to get it from my (anonymous) ftp
site.
The application should run without anny add ons.
So i am looking for some simple code to get this function working:
ftpcopy (ftp://mysite/mypicture;c:\\picturemap\mypicture)

There are also lots of code examples on the net that use VB to implement
ftp using the WinInet library. Here's a gooder:

http://www.vbip.com/wininet/wininet-ftp-command-01.asp

--
'---------------
'John Mishefske
'---------------
Nov 13 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.