|
Hello and Welcome to the board.
A couple things.
1. Please post your code within the board CODE TAGS to preserve your formatting which makes it much easier for others to read your code.
2. I don't see where you're checking for any specific software. If you know the name of the software then why are you attempting to enumerate everything?
What application are you checking for?
further basic reading of your code without checking / testing validity.
$rc = RedirectOutput("test.log",overwrite) That is not how to use RedirectOutPut $rc = RedirectOutput("test.log",1) to overwrite $rc = RedirectOutput("test.log",0) append data
I would not use VARS in strings. Generally speaking some feel it is harder to use that way, but in the long run it will help you to code better code and find errors in your code faster on your own.
Here is an example of code I normally put in most of my scripts. $SO=SetOption('Explicit','On') $SO=SetOption('NoVarsInStrings','On') $SO=SetOption('NoMacrosInStrings','On')
As for enumerating a key structure I'd probably go with the UDF by Jens named ArrayEnumKey
Please see my signature for links to mirrors that sort all the UDF files in an easy format to find and copy.
Edited by NTDOC (2006-03-27 09:28 PM)
|