'Map a network drive if the user is a member of the group.
'Alert the user if the drive cannot be mapped.
If IsMember (objUser, "accounting") Then
If Not MapDrive ("Q:", "\\chicagotech\data") Then
MsgBox "Unable to Map Q: to AdminShare"
End If
Example of batch file - make a network drive
net use h: \\hostname\sharedname