Click here to Skip to main content
15,921,941 members
Please Sign up or sign in to vote.
2.33/5 (2 votes)
See more:
Hi all
I want to download files from ftp server and download to my local disk.i searched internet but didn't find code for it.i am new to vb.net and ssis. i have to do this using script task.
please help me i searched like anything but its of no use.i want to download files with .txt files from folder.i have do it asap
thank in advance
Posted
Updated 20-Dec-13 5:42am
v2
Comments
Sergey Alexandrovich Kryukov 20-Dec-13 11:43am    
"Of no use"?! Wow! You really need to sharpen you search skills, and a skills to read basic documentation.
—SA

You can use the class System.Net.FtpWebRequest: http://msdn.microsoft.com/en-us/library/system.net.ftpwebrequest%28v=vs.110%29.aspx[^].

You can also use the class System.Net.WebClient, which provides simplified functionality, and the required protocol is determined by the URI:
http://msdn.microsoft.com/en-us/library/system.net.webclient%28v=vs.110%29.aspx[^],
http://msdn.microsoft.com/en-us/library/ez801hhe%28v=vs.110%29.aspx[^].

The last of the links shows the MSDN page with few lines of sample code. This is all you need, only use you FTP URIs.

—SA
 
Share this answer
 
Comments
vamshi182013 23-Dec-13 9:17am    
Hi Sergey
your answer is very helpful for me.
Sergey Alexandrovich Kryukov 23-Dec-13 12:52pm    
Very good. Will you accept if formally then (green "Accept" button)? In all cases, your follow-up questions will be welcome.
—SA
finally i found the great article for you please follow and start the begining

https://www.eldos.com/sbb/sftp.net/sftp-net-vb-sample.php

thank you

enjoy!!!!1
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900