I am mounting a network drive to windows using WNetAddConnection2 which is working fine but while mounting the drive by default it assigns the name as Server IP and FolderNa
I tried using vb script for renaming thr drive:
LPCTSTR szCode = "Function RenameDrive(strNewName,strDriveLetter) \r\n\
Dim objShell \r\n\
Set objShell = CreateObject(\"Shell.Application\") \r\n\
'if objShell is Not Nothing Then \r\n\
objShell.NameSpace(strDriveLetter).Self.Name = strNewName \r\n\
'End if \r\n\
End Function";