bobbintb Posted October 20, 2009 Share Posted October 20, 2009 i dont remember if i did this before but i am trying to figure out how to use a wildcard in the registry. i tried using a combination of regread and filfindfirst but cant get anything to work. any ideas? Link to comment Share on other sites More sharing options...
GEOSoft Posted October 20, 2009 Share Posted October 20, 2009 First off, forget about File*() functions. Those folders you see are not folders at all, they're called Hives and the File*() functions won't work with them. The Reg*() functions don't accept wildcards but that's not to say it's impossible to do. Now we have that out of the way, post something that demonstrates what you are actually trying to do and you will get some help. George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!" Link to comment Share on other sites More sharing options...
bobbintb Posted October 20, 2009 Author Share Posted October 20, 2009 (edited) well i know they are hives and not folders. i was just try to see if that function would work anyway. basically i have a registry key i need to check: HKEY_LOCAL_MACHINE\SOFTWARE\Network Associates\ePolicy Orchestrator\Application Plugins\VIRUSCAN8700\Version however the "VIRUSCAN8700" part may change so i really need to replace "VIRUSCAN8700" with a wildcard like this: HKEY_LOCAL_MACHINE\SOFTWARE\Network Associates\ePolicy Orchestrator\Application Plugins\*\Version i wasnt sure if there is a builtin function for this or i have to find a way to make a function myself. Edited October 20, 2009 by bobbintb Link to comment Share on other sites More sharing options...
GEOSoft Posted October 20, 2009 Share Posted October 20, 2009 Try this since I don't use anything NA to test it with. $sKey = "HKLM\SOFTWARE\Network Associates\ePolicy Orchestrator\Application Plugins\" If NOT @Error Then $iCount = 1 While 1 $sReg = RegEnumKey($sKey, $iCount) If @Error Then ExitLoop $aEnum = StringRegExp($sReg, "(?i)viruscan\d+$", 1) If NOT @Error Then $sKey &= $aEnum[0] & "\Version" ExitLoop EndIf $iCount += 1 WEnd EndIf MsgBox(0, "Result", $sKey) George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!" Link to comment Share on other sites More sharing options...
bobbintb Posted October 21, 2009 Author Share Posted October 21, 2009 that worked PERFECTLY. thanks 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