Krikov Posted November 3, 2005 Share Posted November 3, 2005 Hello, I need to Read Registry Key And Outpot all the entry and the Value to a text file the probelm is that i dont know how much entrys there are and what is there names cuz its diffrent form pc to pc Please Help Me Regards Krikov [topic="63488"][font="Arial"]Krikov Tray Quick Menu[/font][/topic] Link to comment Share on other sites More sharing options...
Krikov Posted November 3, 2005 Author Share Posted November 3, 2005 Study RegEnumKey() and RegEnumVal()Lar.i am trying but all i get is a blank line What Wrong with That Code ?=========================================================$var1 = RegEnumKey ("HKEY_LOCAL_MACHINE\SOFTWARE\AutoIt v3\AutoIt" , 1)$var2 = RegEnumVal($var1 , 1)$file = FileOpen("c:\test.txt", 1)FileWrite($file, @ComputerName & " " & $var1)FileWrite($file, $var2 & @CRLF)FileClose($file)========================================================= [topic="63488"][font="Arial"]Krikov Tray Quick Menu[/font][/topic] Link to comment Share on other sites More sharing options...
Developers Jos Posted November 3, 2005 Developers Share Posted November 3, 2005 there is no key under ...AutoIt. Try this example: $var1 = RegEnumKey ("HKEY_LOCAL_MACHINE\SOFTWARE\AutoIt v3", $x) if Not @error then $var2 = RegEnumVal("HKEY_LOCAL_MACHINE\SOFTWARE\AutoIt v3\" & $var1 , 1) FileWrite($file, @ComputerName & " " & $var1) FileWrite($file, $var2 & @CRLF) EndIf SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Krikov Posted November 3, 2005 Author Share Posted November 3, 2005 This is to Complex for me may be there is other way to export data from registry to TXT file Krikov [topic="63488"][font="Arial"]Krikov Tray Quick Menu[/font][/topic] Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now