GetLogicalDrives function does not return mapped drives

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

FW 1.1 VB.Net

When I make a call to either system.environment.getlogicaldrives or
System.io.Directory.GetLogicalDrives from a Windows service, my mapped drives
are not returned.

I also tried WMI WIN32_MappedLogicalDisk, but unfortunately this does not
work with W2K.

Any ideas why GetLogicalDrives does not return my mapped drives when called
from a Windows service?

Thanks
 
RMB said:
FW 1.1 VB.Net

When I make a call to either system.environment.getlogicaldrives or
System.io.Directory.GetLogicalDrives from a Windows service, my mapped
drives
are not returned.

I also tried WMI WIN32_MappedLogicalDisk, but unfortunately this does not
work with W2K.

Any ideas why GetLogicalDrives does not return my mapped drives when
called
from a Windows service?

On WIndows XP and Windows Server 2003, each logon session gets its own set
of drive letters. This differs from the earlier behavior in which there were
26 drive letters system-wide.

Details are here:

http://support.microsoft.com/kb/180362

Short story: use UNC paths in services.

Regards,
Will
 
Back
Top