Getting and displaying a list of files from the internet

J

Jonathan Blitz

I have a directory on an internet site which contains jpg files.
I need to get th elist of files and display then to the user and allow te
user to choose one for viewing.

How do I get the list of files?

--
Jonathan Blitz
AnyKey Limited
Israel

Tel: (972) 8 9790365

"When things seem bad
Don't worry and shout
Just count up the times
Things have worked themselves out."
 
R

Rob Oldfield

I don't think there's going to be anything better than running an ftp script
to create a local text file which you can then interrogate. This...

http://www.mvps.org/access/modules/mdl0015.htm

....has details of how to run the script, while the script file itself will
look something like this...

open ftp.whatever.com 'or an IP if you prefer
username
password
dir *.jpg c:\localfile.txt 'grabs list of jpgs and writes to a text file
quit

If you're unsure about how ftp scripts work then I'd suggest doing it
manually to start off with to get the order of commands correct. You may
well need a cd command before the dir to change to the correct remote
folder. More details on running ftp commands here...

http://www.microsoft.com/windowsxp/...l=/windowsxp/home/using/productdoc/en/ftp.asp

Once you're done that, it's just a case of reading the file (various ways of
doing it - Line Input for example) into something that you can use to set
the data displayed in a list box (or whatever). Could either turn it into a
string for a value list, an array, or write it to a table. I'd probably go
for a table so that users wouldn't need to redo the ftp every time they open
the form, but give them a refresh option for when they want to check for new
files.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top