Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / November 2006

Tip: Looking for answers? Try searching our database.

GetLogicalDrives function does not return mapped drives

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
RMB - 07 Nov 2006 23:45 GMT
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
William DePalo [MVP VC++] - 08 Nov 2006 05:11 GMT
> FW 1.1 VB.Net
>
[quoted text clipped - 9 lines]
> 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
RMB - 08 Nov 2006 16:38 GMT
Thanks Will.  The KB article provides some clarity.

> > FW 1.1 VB.Net
> >
[quoted text clipped - 22 lines]
> Regards,
> Will

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.