I am connecting successfully with the Samba server with the following code. I need to open File Explorer with the Samba server shared folder.
SMB2Client client = new SMB2Client();
bool isConnected = client.Connect(IPAddress.Parse("192.168.1.169"), SMBTransportType.DirectTCPTransport);
if (isConnected)
{
NTStatus status = client.Login(String.Empty, "mint", "test12345");
if (status == NTStatus.STATUS_SUCCESS)
{ {
List shares = client.ListShares(out status);
Process.Start("explorer.exe", @"\\192.168.1.169\sambashare");
client.Logoff();
}
client.Disconnect();
Console.ReadKey();
}
This is not opening anything. Also, I can't access the subdirectory of that folder.