Click here to Skip to main content
15,905,874 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am writing a program in VB.Net in which I am pulling data from sql server into my application using the data grid view, which has the path of the folders in shared drive. I want to download the folders into local drive form the path stored in the data grid view. I am able to fetch the data from database, but unable to loop the path to download the folders. in my data grid view, say 14 rows are pulling. Any suggestions, please help.

What I have tried:

Private Sub frmDownload_Click(sender As Object, e As EventArgs) Handles frmDownload.Click
'My.Computer.Network.DownloadFile("\\127.129.11.256\fel\njccc\65184", "C:\Users\tripatha\Downloads\TestDownload")
System.IO.File.Copy("\\127.129.11.256\fel\njccc\65184", "C:\Users\tripatha\Downloads\TestDownload")
End Sub
Posted
Comments
Richard MacCutchan 10-Aug-18 3:53am    
What is the problem?

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