#40857 - 2003-05-30 02:21 PM
Re-dircting output.
|
The_Apprentice
Fresh Scripter
Registered: 2003-05-30
Posts: 16
Loc: Guildford, England
|
Me again
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
|
Top
|
|
|
|
#40858 - 2003-05-30 02:25 PM
Re: Re-dircting output.
|
Richard H.
Administrator
Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
|
Read on towards the back of the manual.
(Hint: Look for RedirectOutput() )
|
Top
|
|
|
|
#40859 - 2003-05-30 02:31 PM
Re: Re-dircting output.
|
The_Apprentice
Fresh Scripter
Registered: 2003-05-30
Posts: 16
Loc: Guildford, England
|
:$
Got bored searching on "output"
Trying it now.
|
Top
|
|
|
|
#40860 - 2003-05-30 02:38 PM
Re: Re-dircting output.
|
The_Apprentice
Fresh Scripter
Registered: 2003-05-30
Posts: 16
Loc: Guildford, England
|
Just realised my typo too.
WTF is HKEY_CURRENT_MACHINE ??
|
Top
|
|
|
|
#40861 - 2003-05-30 02:57 PM
Re: Re-dircting output.
|
Sealeopard
KiX Master
Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
|
There is no HKEY_CURRENT_MACHINE, it's either HKEY_CURRENT_USER or HKEY_LOCAL_MACHINE and they are registry hives.
Take a look at the following KiXtart functions: OPEN/WRITELINE/CLOSE, READPROFILESTRING/WRITEPROFILESTRING, REDIRECTOUTPUT.
Take a look at the following UDFs: WriteLog2(), DisplayText(), ArrayEnumKey(), ArrayEnumValue() [ 30. May 2003, 15:22: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.
|
Top
|
|
|
|
#40863 - 2003-05-30 03:21 PM
Re: Re-dircting output.
|
The_Apprentice
Fresh Scripter
Registered: 2003-05-30
Posts: 16
Loc: Guildford, England
|
I had not heard of "HEKEY_CURRENT_USER" either
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 369 anonymous users online.
|
|
|