Jump to content

Read Registry Key


Krikov
 Share

Recommended Posts

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

B)

[topic="63488"][font="Arial"]Krikov Tray Quick Menu[/font][/topic]

Link to comment
Share on other sites

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

  • Developers

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...