Hi, I am trying to write a program that copies files from one PC (via user inputted IP address) to the local machine.
In the other computer there are 66 files, but only 33 files copy over and most of the are 0 KB, with no errors returned.
The authentication is working fine, as I can run SMB.listfiles and get details.
Any ideas on what I could be doing wrong?
In the other computer there are 66 files, but only 33 files copy over and most of the are 0 KB, with no errors returned.
The authentication is working fine, as I can run SMB.listfiles and get details.
Any ideas on what I could be doing wrong?
B4X:
Sub SMBtest
SMB1.Initialize("SMB1")
SMB1.SetCredentials("username", "password", "")
SMB1.ListFiles("smb://" & txtPCname.Text & "/testHost/", "")
End Sub
B4X:
Sub SMB1_ListCompleted(Url As String, Success As Boolean, Entries() As SMBFile)
If Not(Success) Then
Log(LastException)
lblCntErr.Text = "ERROR CONNECTING TO " &txtPCname.Text
Else
lblCntSucc.Text = "CONNECTED"
For i = 0 To Entries.Length - 1
SMB1.Downloadfile(Entries(i).Parent, Entries(i).Name, "c:\test2\", Entries(i).Name)
Next
End If
End Sub