"Code on a silver platter"TM
code:
$Index = 0
:Loop2
$KeyName = EnumKey("HKEY_CURRENT_USER\Printers\Connections\", $Index)
$KeyName = join(split($KeyName ,","),"\")
If @ERROR = 0
? "$KeyName"
$Index = $Index + 1
GoTo Loop2
EndIf

Oh, and please refrain form using GOTOs in your code, see for example the ArayEnumKEY() UDF.

[ 14. July 2003, 15:32: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.