Access protected file share

There was a post, where a user wanted to get read/write acces to a file share outside the current domain from within Nav. This can be done via .Net: NetworkCredential := NetworkCredential.NetworkCredential(username, password, domain); // Credentials for domain 2 CredentialCache := CredentialCache.CredentialCache; Uri := Uri.Uri(‘\\server’); // the server name from domain 2 CredentialCache.Add(Uri, ‘Basic’, NetworkCredential); Dirs := SysDir.GetDirectories(‘\\server\directory’); // get folder... Read the full text.
Comment List
Related
Recommended