tried $Share.Name already?

Can't tell exactly why you ask as you already use it

Code:

$Shares = GetObject("winmgmts:").ExecQuery("Select * from Win32_Share where Path <> NULL")
For Each $Share in $Shares
If $Share.Path="c:\" And $Share.Name <> "c$$"
$Share.Name ?
EndIf
Next



Edited by Jochen (2005-12-01 09:19 PM)
_________________________