globalstrata
MIS
Hello,
I am trying to write a script that outputs the files under the C:\Windows\Downloaded Porgram Files but I have not been able to figure out how to get the CLSID property for each file. Does any one has any idea?
Here is the code I have so far
Thanks in advanced,
Gladys Rodriguez
GlobalStrata Solutions
Computer Repair, Website Design and Computer Consultant
Small Business Resources
Anime, Manga and Video Games
I am trying to write a script that outputs the files under the C:\Windows\Downloaded Porgram Files but I have not been able to figure out how to get the CLSID property for each file. Does any one has any idea?
Here is the code I have so far
Code:
Const ForReading = 1, ForWriting = 2
Dim fso, Myfile
Set fso = CreateObject("Scripting.FileSystemObject")
' Open the file for write access.
On Error Resume Next
Set MyFile = fso.OpenTextFile("c:\temp\testfile.txt", ForWriting, True, OpenAsASCII)
Set Appshell = WScript.CreateObject("Shell.Application")
Set folder = Appshell.NameSpace("C:\Windows\Downloaded Program Files")
Set items = folder.Items
For Each item in items
if item.path <> "" then
version = fso.getfileversion(item.path)
end if
Myfile.Write item.name & vbTab & version & vbCrLf
Next
objFile.Close
NEXT
Thanks in advanced,
Gladys Rodriguez
GlobalStrata Solutions
Computer Repair, Website Design and Computer Consultant
Small Business Resources
Anime, Manga and Video Games