2009. 9. 25. 04:46
List ProgIDs
2009. 9. 25. 04:46 in 3. Implementation/VB / Java Script
현재 컴퓨터에 존재하는 COM 의 ProgID 를 나열해 주는 VBScript 코드이다.
참고 : http://www.microsoft.com/downloads/details.aspx?FamilyID=B4CB2678-DAFB-4E30-B2DA-B8814FE2DA5A&displaylang=en
On Error Resume Next strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set colItems = objWMIService.ExecQuery _ ("Select * from Win32_ProgIDSpecification") For Each objItem in colItems Wscript.Echo "Caption: " & objItem.Caption Wscript.Echo "Check ID: " & objItem.CheckID Wscript.Echo "Name: " & objItem.Name Wscript.Echo "Parent: " & objItem.Parent Wscript.Echo "ProgID: " & objItem.ProgID Next |
참고 : http://www.microsoft.com/downloads/details.aspx?FamilyID=B4CB2678-DAFB-4E30-B2DA-B8814FE2DA5A&displaylang=en