GoogleDude Posted April 19, 2007 Share Posted April 19, 2007 (edited) I have a registry key with a value that I want to set as a $var but the subkeys are dynamic and are slightly different on some PCs. for example. HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{GUID}021 <---- 0021 is dynamic, inside 0021 there is a key "InfPath" with a data value of "oem08.inf" <----oem08.inf is also dynamic but oem08.inf is what I want to set as the $var. How can I do this or can it be done with AutoIt? Basicly what I am after is I need to get the OEM#.inf that a windows driver uses and the path that it is in. I know that the location will pretty much always be C:\Windows\INF\ but the OEM#.inf is dynamic. Hope this makes sense. Thank you to anyone who can help out with this. GoogleDude Edited April 19, 2007 by GoogleDude Link to comment Share on other sites More sharing options...
Zedna Posted April 19, 2007 Share Posted April 19, 2007 (edited) Look at RegEnumKey():$i = 1 While 1 $key = RegEnumKey("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows", $i) If @error Then ExitLoop ConsoleWrite($key & @CRLF) $i += 1 WEnd Edited April 19, 2007 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search 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