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