Sub SMBClient_Resource(success As Boolean, smbobjres As Object,smbobj As Object, info As String)
Dim smbResource As SMBResource = smbobjres ' THIS is the needed Object. it is the Folder/Share you have initialized
Dim smbfile As SMBFile = smbobj
Log($"SMBClient_Resource(${success},${smbResource}, ${smbfile},${info})"$)
Log($"OwnerGroup: ${smbResource.OwnerGroup}"$)
'Dim ownersid As SMBSID = smbResource.OwnerGroup
'Log($"OwnerUser: ${smbResource.OwnerUser}"$)
'Log($"canWrite: ${smbResource.canWrite}"$)
'Log($"OwnerGroupSIDDomainName: ${ownersid.DomainName}"$)
'Log($"OwnerGroupSIDAccountName: ${ownersid.AccountName}"$)
'Log($"OwnerGroupType: ${ownersid.TypeText}"$)
'Dim owner As SMBSID = smbResource.OwnerUser
'Log($"UserSIDDomainName: ${owner.DomainName}"$)
'Log($"OwnerSIDAccountName: ${owner.AccountName}"$)
'Log($"OwnerType: ${owner.TypeText}"$)
'Log($"CanonicalPath = ${smbfile.CanonicalPath}"$)
'Log($"CanonicalUncPath = ${smbfile.CanonicalUncPath}"$)
client.Copy2("E:\","cat.zip",smbResource,"cat.zip",16384) ' Copy E:\cat.zip to the Share with a Blocksize of 16384 Bytes
End Sub