B4A Library SMB library

Last edited:

monki

Active Member
Licensed User
Longtime User
hi agraham,
Thanks for the lib but
it is not a jar and no xml file in the zip:confused:
 

MrKim

Well-Known Member
Licensed User
Longtime User
Don't know if this is a feature or a bug. When using ListFiles if you provide a malformed url instead of failing it will return what appears to be the workgroup for the computer.

For example.
smb://mycomputer/temp
returns true with 11 entries
smb://CCmycomputer/temp
will fail as it should BUT
smb:CC://mycomputer/temp OR smb:mycomputer/temp OR smb: OR smb:/ OR smb://
will return True with 1 entry. The one entry is Myworkgroup/ and is listed as directory with a parent of smb://

Also, A listing on the root of a computer smb://mycomputer will also return the printers listed as directories.
 

bilbo69

New Member
Licensed User
Longtime User
Hi to all,
I've a tablet connected in a local lan in wifi and I want to list the files of disc D on the computer LUCANB (192.168.1.11)
Using the line SMB1.ListFiles("smb://192.168.1.11/D/", "") is OK.

The question is... if the wifi is OFF and I connect directly the tablet to the computer LUCANB with a USB Cable how is possible to have the same results? Using the line SMB1.ListFiles("smb://192.168.1.11/D/", "") appear the error
ListFiles failed : (SmbException) jcifs.smb.SmbException: Failed to connect: 0.0.0.0<00>/192.168.1.11

Thankyou
 

Knoppi

Active Member
Licensed User
Longtime User
Hello,

is there a bug in the .UploadFile sub?

when i try to upload files and the RemotePath doesn't end with "/"
the files upload to the parent Dir.

B4X:
Dim RemotePath As String = "smb://192.168.x.x/public/tmp"

SMB1.UploadFile( LocalPath, CopyFile, RemotePath, CopyFile)
files are in /public

B4X:
Dim RemotePath As String = "smb://192.168.x.x/public/tmp/"

SMB1.UploadFile( LocalPath, CopyFile, RemotePath, CopyFile)
works fine


Knoppi
 

gudino jose luis

Active Member
Licensed User
Longtime User
hi,
Is possible to transfer a considerable amount of .jpg files from the computer
to device (about 7000 files) with SMB1 ?

regards
 
Top