RE: Internetty thingies.

new topic     » topic index » view thread      » older message » newer message

mistertrik at hotmail.com wrote:

> How do you retrieve a file from a remote location?
> 
> 1) I need to check the existence of a file on a different computer.
> Can I set the path (for exw) as \\(name of comp)\c\directory, like 
> appears 
> in the win explorer window?
 
I just tried this with dir() and it worked fine.
Note: I needed to put a trailing "\\" on the end of a directory name.
As an example if I wanted to get the contents of a shared directory
called "WORK" on a PC called "MAIN" I could:

object d
d = dir("\\\\MAIN\\WORK\\")

 
 
> 2) I wish to write a routine, that, given a sequence of strings 
> containing 
> url's, it will download each url's file into a given directory. It 
> doesn't 
> need to search the files' contents for dependant files, just the file 
> itself. Any ideas?

As others have mentioned one way is to use the TCP library called 
euTCP4u. 
The euTCP4u package comes with an example program called
"get_file.exw" which will retrieve one file from a web server.
This could be easily modified to download from a list.

Ray Smith
http://rays-web.com

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu