Jump to content

Filter in VBScript "View all programs"


WilliamsNL

Recommended Posts

Hello.

Here I have a VBScript which shows the installed programs of the local machine in a txt-file with name and versionnumber. What I want is filter some programs, so you don't see them in the txt-file. For example Microsoft Word 2013 and Microsoft Excel 2013.

 

Can someone help me with this? See the script as attachment.

softwarelist with filter.txt

Edited by WilliamsNL
Link to comment
Share on other sites

It looks like this line gets the program name and stores it in strValue1:

intReturn = objReg.GetStringValue(HKLM, arrKeys(i) & strSubkey, strEntry1a, strValue1)
You could check that variable against a list of things that you want to skip before you write to the file.
Link to comment
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
×
×
  • Create New...