Re: Internetty thingies.
- Posted by acran at readout.fsnet.co.uk Apr 09, 2002
- 365 views
Hello "Mr. T" At 23:40 09/04/02 +1000, you wrote: > >Two questions, the first of which does not relate to the title: (it's late) > >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? Why not work out which drive letter has been mapped to \\(name of comp)\c\directory and then try opening the file (e.g. "I:\sharedstuff\filename") and if the file open is ok then assume the file exists? YMMV >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? Two options I can suggest. First is to use one of several TCP based libraries on the contributions page. Second is to download the GRABURL.EXE utility (assuming your running Windows) from: http://www.kiraly.com/software/utilities/graburl/ and then call this from "system" calls in EU which save the output to a file and you can then open, read and inspect the contents of this output file. >Cheers >++++++++++++ >Mr Trick Likewise, Andy Cranston. > > >