Sign in to follow this  
Followers 0
Krikov

Read Registry Key

4 posts in this topic

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]

Share this post


Link to post
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]

Share this post


Link to post
Share on other sites

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

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

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]

Share this post


Link to post
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
Sign in to follow this  
Followers 0