Code:
$sSourceINI=".\x.ini"
$sSourceSection="SOURCE"
$sDestINI=".\y.ini"
$sDestSection="DEST"

; First, delete the destination section
$=WriteProfileString($sDestIni,$sDestSection,"","")
; Now, copy the section over from the source
For Each $sKey In Split(ReadProfileString($sSourceINI,$sSourceSection,""),Chr(10))
If $sKey
$=WriteProfileString($sDestINI,$sDestSection,$sKey,
ReadProfileString($sSourceINI,$sSourceSection,$sKey)
)
EndIf
Next
Exit 0