Me again [Smile]

I am trying top output a list of installed hotfixes from the registry (W2K).

I am using the eaxample from ENUMKEY, but how can I redirect the output to a text file.

; Read Hotfixes Registry Key
$Index = 0
:Loop1
$KeyName = ENUMKEY("HKEY_CURRENT_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\HotFix\ ", $Index)
If @ERROR = 0
? "Name found: $KeyName"
$Index = $Index + 1
goto Loop1
Endif

Many thanks in advance

Sean