I think so.

This is what I have so far:
code:
Function GetServerFromLocalGroups()
Dim $LTeller, $LGroup
$LTeller = 0
Do
$LGroup = EnumLocalGroup($LTeller)
$LTeller=$LTeller+1
Hash("MyShares", SubStr($LGroup, InStr($LGroup, "_") + 1, 1)
Until Len($LGroup) = 0
EndFunction

Function GetSharesFromGlobalGroups()
Dim $GTeller, $GGroup
$GTeller = 0
Do
$GGroup = EnumGroup($GTeller)
$GTeller=$GTeller+1
Hash("MyServers", SubStr($GGroup, 3, Len($GGroup) - 2, 1)
Until Len($GGroup) = 0
EndFunction

This code replaces several of your original functions.

What needs to be worked on now is the listing of the global groups in locals groups and adding the additional shares (from Global groups names) to the "MyShares" HASH.

Then you simply:
code:
For each $Server in HashKeys("MyServers")
For each $Share in HashKeys("MyServers")
use $drive "\\"+$Server+"\"+$Share
next
next

I haven't quite figured out where you link the drive letter to the server\share yet.

Does this seem to be going in the right direction?

[ 25. March 2003, 14:38: Message edited by: Howard Bullock ]
_________________________
Home page: http://www.kixhelp.com/hb/