FTP 
Author Message
 FTP

I need to download a file from an FTP site. i've looked
for samples and i keep seeing a reference to an Inet
control. Does this come with vs.net or is it an extra
control.

Any help appreciated.

Roland



Tue, 26 Apr 2005 21:33:54 GMT  
 FTP
Dim WebClient As New System.Net.WebClient()
Dim webResponse As IO.Stream, webResult As String
Dim remoteFile As String = "FTP://www.myweb.com/Directory/filename"

webResponse = WebClient.OpenRead(remoteFile)
Dim myReader As New IO.StreamReader(webResponse)

webResult = myReader.ReadToEnd
myReader.Close()
webResponse.Close()


Quote:
> I need to download a file from an FTP site. i've looked
> for samples and i keep seeing a reference to an Inet
> control. Does this come with vs.net or is it an extra
> control.

> Any help appreciated.

> Roland



Tue, 26 Apr 2005 22:57:22 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. ftp://ftp.basicguru.com/pub/dnavarro/

2. FTP - determining if incoming FTP file is loaded before FTPing it out

3. FTP - Get File Date from FTP Site

4. How To FTP a File To FTP Server

5. FTP Trouble with winsock and FTP object!!!!

6. The FTP-SPY: yet another ftp-freeware (written in VB4.0)

7. FTP ls _vs_ FTP from Browser

8. Internet Transfer Control - Cannot FTP to Intranet FTP sites

9. Ftp to Ftp transfers (and assorted other thingies)

10. FTP via VB to an FTP Server

11. Q VB4.0 beginner: What FTP sites have kbvb32.exe? I can't get it from ftp.microsoft and ftp.sn.no

12. Is there a good ActiveX Object for FTP transfers or FTP.exe command line commands I can execute with a shell?

 

 
Powered by phpBB® Forum Software