WalleyeGuy
Technical User
I have a logon script, that of course maps network drives...it pops up an IE HTA Window and displays a summary.
I display an enumerated collection of the network drive mappings. How can I get that display to show the drives sorted alphabetically?
Code I'm using is below:
Dim i,objDrives
'Enumerate & Display Network Drive Mappings
Set objDrives = objNetwork.EnumNetworkDrives
' On Error Resume Next
showIE "strYellow", "<p><b><u>Network Drive Mapping:</b></u><br>"
For i = 0 to objDrives.Count - 1 Step 2
showIE "strYellow","Drive " & UCase(objDrives.Item(i)) & " maps to " & UCase(objDrives.Item(i+1)) & "<br>"
Next
I'm sure there has been a post or a FAQ created on this; however, I guess I just am not using the correct search criteria, as I cannot find the answer here (which is not normal).
Thanks Ahead of Time All
I display an enumerated collection of the network drive mappings. How can I get that display to show the drives sorted alphabetically?
Code I'm using is below:
Dim i,objDrives
'Enumerate & Display Network Drive Mappings
Set objDrives = objNetwork.EnumNetworkDrives
' On Error Resume Next
showIE "strYellow", "<p><b><u>Network Drive Mapping:</b></u><br>"
For i = 0 to objDrives.Count - 1 Step 2
showIE "strYellow","Drive " & UCase(objDrives.Item(i)) & " maps to " & UCase(objDrives.Item(i+1)) & "<br>"
Next
I'm sure there has been a post or a FAQ created on this; however, I guess I just am not using the correct search criteria, as I cannot find the answer here (which is not normal).
Thanks Ahead of Time All