Is There any SMB Protocol Units or Components ? lazarus / 38-Networking and Web Programming ---------------------------------------------------------------------- Coldzer0 · 2017-12-02 19:30 Hello all i'm searching for SMB Protocol Unit or library or anything i can use to connect to SMB Server especially SMB2 or SMB3 i search google for 3 days but nothing  thanks in advanced ---------------------------------------------------------------------- mirce.vladimirov · 2017-12-02 21:18 What exactly do you need ? SMB is used to access a certain share on a remote PC. For which operating system your executable is developed ? If it's windows then you could use TProcess like : Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i varProcess1 : TProcess ;begin    Process1.CommandLine:='net use \\192.168.0.5\RemoteFolderName /U:Administrator password';  // replace IP address, remote folder name and "Administrator" and "password" as you need    Process1.Execute;  // now you can do what ever you need to, read,copy,delete,move files to and from the network share  // to disconnect  the remote shared folder :    Process1.CommandLine:='net use /delete \\192.168.0.5\RemoteFolderName ';    Process1.Execute; Under Linux you should  "mount" instead of "net use". ---------------------------------------------------------------------- Coldzer0 · 2017-12-02 21:54 i need a SMB Client library to connect using TCP not using other tools ---------------------------------------------------------------------- marcov · 2017-12-02 21:58 Afaik there is a libsmbclient in samba? ---------------------------------------------------------------------- Coldzer0 · 2017-12-02 22:32 Quote from: marcov on December 02, 2017, 10:58:10 pmAfaik there is a libsmbclient in samba? is there any Pascal Headers for it ? ---------------------------------------------------------------------- rvk · 2017-12-02 22:47 Quote from: Coldzer0 on December 02, 2017, 11:32:09 pmQuote from: marcov on December 02, 2017, 10:58:10 pmAfaik there is a libsmbclient in samba? is there any Pascal Headers for it ? https://searchcode.com/codesearch/view/64390136/ leads to here https://bitbucket.org/xeningem/dc_fork/src/f0193d88b17a4df5bd6c7636553 4c036409efc5d/plugins/wfx/samba/src/?at=default ---------------------------------------------------------------------- Coldzer0 · 2017-12-04 02:09 i can't find any libsmbclient binaries i try to compile samba but i got a lot of errors please if there's any way to get a Multi OS smb client or even just for windows i hope that someone can help ---------------------------------------------------------------------- rvk · 2017-12-04 14:51 Wat exactly are you trying to do? I don't think you'll find a ready- made unit to do what you want from low level TCP perspective. SMB had many different versions and security so even if you could communicate with a server on such a low level as TCP, you'll have a hell of a time to get all this working correctly. Using a library like libsmbclient will be much easier. In Windows you could use the Windows-api to make connections etc. But I haven't found ready made headers for the Samba libraries of Windows. But it depends on what you want to do, if you really need them. https://msdn.microsoft.com/en- us/library/windows/desktop/aa365233(v=vs.85).aspx QuoteThe client and server establish a NetBIOS session. The client and server negotiate the Microsoft SMB Protocol dialect. The client logs on to the server. The client connects to a share on the server. The client opens a file on the share. The client reads from the file. For example, do you want to use NetBIOS to access SMB? https://superuser.com/a/694480/235723