Link to home
Start Free TrialLog in
Avatar of AlexF777
AlexF777

asked on

how can i progammatically determine how drives were mapped on a certain server ( or, at least on my PC )

Windows Explorer can do it easily, hopefully, it is not that difficult

DriveInfo object in VB.NET does not seem to have this info available

thanks in advance,
-Alex
Avatar of JestersGrind
JestersGrind
Flag of United States of America image

You have this in the SQL Server zone, so from a SQL perspective, you can run the following which will list the drive letter of each fixed drive and the amount of free space in MB.

EXEC master..xp_fixeddrives

Greg

Avatar of Racim BOUDJAKDJI
<<EXEC master..xp_fixeddrives>>
Indeed.  Does not work with mountpoints though.
Somehow I suspect this has nothing to do with SQL Server...
<<Somehow I suspect this has nothing to do with SQL Server...>>
LOL....Occurs more and more often...
ASKER CERTIFIED SOLUTION
Avatar of Bob Learned
Bob Learned
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of cup
cup

Do you just want "net use" drives or subst drives as well?