Apr 23, 2012 Replies: 31 This library provides access to Microsoft Windows Network. See this tutorial: http://www.b4x.com/forum/basic4andr...7179-android-smb-cifs-tutorial.html#post98176 This library is based on JCIFS library: JCIFS Installation instructions: - Unzip the attached file and copy all files to the internal libraries folder. Edit: The most updated version is available here: http://www.b4x.com/forum/additional-libraries-classes-official-updates/17180-smb-library-2.html#post166766 Last edited: Dec 31, 2013 Click to expand...
This library provides access to Microsoft Windows Network. See this tutorial: http://www.b4x.com/forum/basic4andr...7179-android-smb-cifs-tutorial.html#post98176 This library is based on JCIFS library: JCIFS Installation instructions: - Unzip the attached file and copy all files to the internal libraries folder. Edit: The most updated version is available here: http://www.b4x.com/forum/additional-libraries-classes-official-updates/17180-smb-library-2.html#post166766
M monki Active Member Licensed User Longtime User Apr 29, 2013 #21 hi agraham, Thanks for the lib but it is not a jar and no xml file in the zip
agraham Expert Licensed User Longtime User Apr 29, 2013 #22 Sorry, I had a problem and had to reboot my computer while I was making the archive and forgot that I hadn't included them when I posted it. It should be OK now.
Sorry, I had a problem and had to reboot my computer while I was making the archive and forgot that I hadn't included them when I posted it. It should be OK now.
PhilipBrown Active Member Licensed User Longtime User Jun 15, 2013 #23 Link does not exist Erel said: Edit: The most updated version is available here: http://www.b4x.com/forum/additional-libraries-classes-official-updates/17180-smb-library-2.html Click to expand... This link does not exist and just brings you back to the top of this thread.
Link does not exist Erel said: Edit: The most updated version is available here: http://www.b4x.com/forum/additional-libraries-classes-official-updates/17180-smb-library-2.html Click to expand... This link does not exist and just brings you back to the top of this thread.
Erel B4X founder Staff member Licensed User Longtime User Jun 16, 2013 #24 The updated library is available in the second page. You will need to scroll down a bit. I will update the link to the correct post.
The updated library is available in the second page. You will need to scroll down a bit. I will update the link to the correct post.
MrKim Well-Known Member Licensed User Longtime User Sep 10, 2013 #25 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.
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.
B bilbo69 New Member Licensed User Longtime User Jan 5, 2014 #26 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
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
Erel B4X founder Staff member Licensed User Longtime User Jan 6, 2014 #27 Not sure what is "computer LUCANB". You can only communicate over a USB connection if ADB (usb debugging) is running. Otherwise the device is connected as a MTP (or similar) device.
Not sure what is "computer LUCANB". You can only communicate over a USB connection if ADB (usb debugging) is running. Otherwise the device is connected as a MTP (or similar) device.
Knoppi Active Member Licensed User Longtime User Mar 6, 2014 #28 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. Code: Dim RemotePath As String = "smb://192.168.x.x/public/tmp" SMB1.UploadFile( LocalPath, CopyFile, RemotePath, CopyFile) files are in /public Code: Dim RemotePath As String = "smb://192.168.x.x/public/tmp/" SMB1.UploadFile( LocalPath, CopyFile, RemotePath, CopyFile) works fine Knoppi
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. Code: Dim RemotePath As String = "smb://192.168.x.x/public/tmp" SMB1.UploadFile( LocalPath, CopyFile, RemotePath, CopyFile) files are in /public Code: Dim RemotePath As String = "smb://192.168.x.x/public/tmp/" SMB1.UploadFile( LocalPath, CopyFile, RemotePath, CopyFile) works fine Knoppi
Erel B4X founder Staff member Licensed User Longtime User Mar 6, 2014 #29 If there is no trailing '/' then the system treats the last string as a file instead of a folder.
gudino jose luis Active Member Licensed User Longtime User May 14, 2014 #30 hi, Is possible to transfer a considerable amount of .jpg files from the computer to device (about 7000 files) with SMB1 ? regards
hi, Is possible to transfer a considerable amount of .jpg files from the computer to device (about 7000 files) with SMB1 ? regards
Erel B4X founder Staff member Licensed User Longtime User May 14, 2014 #31 There is no limit on the number of files being sent.