Jump to content
Sign in to follow this  
memnon

registry problem ... reading

Recommended Posts

memnon

Hello

i want to read all mapped printers via registry

under

HKEY_CURRENT_USER\Printers\Connections

,,Server,hplaser

,,Server,hplaser2

,,Server,hplaser3

that are the names of the mapped Printers BUT they are KEYS not values.

my problem is that i dont know, how many printers are available on the server, so

i dont know excactly how to use RegEnumKey ( "keyname", instance ) in a do while loop

any idea how i can read em ?

Edited by memnon

das beste Windows Support Forum: Windows 2000 Helpline und tschüss den WindowsfehlernProgrammieren: Autoit 3 - wer braucht noch VBS ?!Programmieren: Autoit 3 Forum?

Share this post


Link to post
Share on other sites
jpm

something like

For $i= 1 to 10
    $var = RegEnumKey("HKEY_LOCAL_MACHINE\SOFTWARE", $i)
    If @error <> 0 then ExitLoop
    MsgBox(4096, "SubKey #" & $i & " under HKLM\Software: ", $var)
Next
:whistle:

Share this post


Link to post
Share on other sites
memnon

something like

For $i= 1 to 10
    $var = RegEnumKey("HKEY_LOCAL_MACHINE\SOFTWARE", $i)
    If @error <> 0 then ExitLoop
    MsgBox(4096, "SubKey #" & $i & " under HKLM\Software: ", $var)
Next
:whistle:

<{POST_SNAPBACK}>

thx

das beste Windows Support Forum: Windows 2000 Helpline und tschüss den WindowsfehlernProgrammieren: Autoit 3 - wer braucht noch VBS ?!Programmieren: Autoit 3 Forum?

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  

×