I am exporting mapped printers by using the following code:

$Index = 0
:Loop2
$KeyName = EnumKey("HKEY_CURRENT_USER\Printers\Connections\", $Index)
If @ERROR = 0
?"$KeyName"
$Index = $Index + 1
GoTo Loop2
EndIf

When I export it there are commas in the text which makes it space out in the file. How can I replace these commas with a "\"?