Hi,
I’m hoping someone can inform me please. What it is I found this script on the MS web site and it currently lists everything in the programs folder. What I want it to do is list everything that is held in the Add Remove programs folder. You know the one when you go to Control Panel – Add Remove programs.
I know it has something to do with the &H2& hexi no. but I don’t know which one represents the Add Remove Programs folder.
If anyone can point me in the right direction or inform me of the correct hexi number it would be great. I'm trying to achieve the same results as the command swlist does in UNIX.
Here is the code:
Const LOCAL_APPLICATION_DATA = &H2&
Set objShell = CreateObject("Shell.Application")
Set objFolder = objShell.Namespace(LOCAL_APPLICATION_DATA)
Set objFolderItem = objFolder.Self
Wscript.Echo objFolderItem.Path
Set colItems = objFolder.Items
For Each objItem in colItems
Wscript.Echo objItem.Name
Next
Thanks
Keith
I’m hoping someone can inform me please. What it is I found this script on the MS web site and it currently lists everything in the programs folder. What I want it to do is list everything that is held in the Add Remove programs folder. You know the one when you go to Control Panel – Add Remove programs.
I know it has something to do with the &H2& hexi no. but I don’t know which one represents the Add Remove Programs folder.
If anyone can point me in the right direction or inform me of the correct hexi number it would be great. I'm trying to achieve the same results as the command swlist does in UNIX.
Here is the code:
Const LOCAL_APPLICATION_DATA = &H2&
Set objShell = CreateObject("Shell.Application")
Set objFolder = objShell.Namespace(LOCAL_APPLICATION_DATA)
Set objFolderItem = objFolder.Self
Wscript.Echo objFolderItem.Path
Set colItems = objFolder.Items
For Each objItem in colItems
Wscript.Echo objItem.Name
Next
Thanks
Keith