Jump to content

Getting a dynamic Reg Key to set var?

Recommended Posts

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.


Edited by GoogleDude
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
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...