There is an API that will return that information. This is a snippet of VB
Code that might help. How you turn that into simple script code in KIX or
elsewhere, I am not sure.....
Private Declare Function GetDriveType Lib "kernel32" Alias "GetDriveTypeA"
(ByVal nDrive As String) As Long
Private Sub Form_Load()
Select Case GetDriveType("C:\")
Case 2
Me.Print "Removable drive"
Case 3
Me.Print "Drive is Fixed"
Case Is = 4
Me.Print "Remote mapped drive"
Case Is = 5
Me.Print "Cd-Rom"
Case Is = 6
Me.Print "Ram disk"
Case Else
Me.Print "Unrecognized"
End Select
End Sub
-----Original Message-----
From: Lum, David [mailto:[EMAIL PROTECTED]]
Sent: 27 November 2002 20:09
To: NT 2000 Discussions
Subject: Drive mappings
Does any use or know of a utility that will list drive mappings and
differentiate between what is a locally assigned mapping - meaning the
client does the mapping instead of the login script, and a login script
assigned one?
I'm looking for basically a modifed NET USE output, something like this:
F: \\<servername\sharename>
G: \\<servername\sharename>
I: \\<servername\sharename> *Locally mapped drive**
I can do it with KiX and Win9x by comparing raw NET USE output to the 9x
registry, but the workaround for Win2K is tedious as the Windows 2000
registry handles it differently than Win9x.
Thanks in advance,
Dave Lum - [EMAIL PROTECTED]
Sr. Network Specialist - Textron Financial
503-675-5510
------
You are subscribed as [EMAIL PROTECTED]
Archives: http://www.swynk.com/sitesearch/search.asp
To unsubscribe send a blank email to %%email.unsub%%
------
You are subscribed as [email protected]
Archives: http://www.swynk.com/sitesearch/search.asp
To unsubscribe send a blank email to [EMAIL PROTECTED]