Unable to access UNC path from Windows Service

  • Thread starter Thread starter Vijay Singh edisphere
  • Start date Start date
V

Vijay Singh edisphere

Guest
Environment : Windows Server. Build number - 10.0.14393.2312, Visual Studio 2017

Hi,

I developed a Windows Service using VC++. I am trying to access UNC path \\edisharedstorage.file.core.windows.net\edisphere-azure-storage which is failing asking for user name and password.

I can access path if I create map drive like

net use Z: \\edisharedstorage.file.core.windows.net\edisphere-azure-storage password /USER:AZURE\userstorage / persistent:no


I wanted to know is it Ok to create map drive within Windows Service then use it later? If not what is another way to use UNC path which require user name and password to access?


Thanks in advance

Vijay Singh

Continue reading...
 
Back
Top