欧美大屁股bbbbxxxx,狼人大香伊蕉国产www亚洲,男ji大巴进入女人的视频小说,男人把ji大巴放进女人免费视频,免费情侣作爱视频

歡迎來(lái)到入門教程網(wǎng)!

vb

當(dāng)前位置:主頁(yè) > 軟件編程 > vb >

用vbs列出機(jī)器上所有能調(diào)用的組件

來(lái)源:本站原創(chuàng)|時(shí)間:2020-01-10|欄目:vb|點(diǎn)擊: 次

'要用到regtool.ocx,請(qǐng)下載//www.jb51.net/jslib/regtool.ocx,用前請(qǐng)regsvr32   regtool.ocx 

set wshshell = CreateObject("WScript.Shell") 
set registry = CreateObject("regtool.tob") 
'獲取一個(gè)dictionary對(duì)象存儲(chǔ)鍵名 
set dict = CreateObject("Scripting.Dictionary") 
'列舉HKEY_CLASSES_ROOT中所有鍵 
set allkeys = registry.RegEnum("HKCR\") 
'排除所有鍵中鍵名有點(diǎn)的。 
for each key in allkeys 
'第1個(gè)點(diǎn)在哪兒(跳過(guò)初始點(diǎn))? 
pos = Instr(2, key, ".") 
if pos>0 then 
'there's a dot. Is there another one? 
pos2 = Instr(pos+1, key, ".") 
if pos2>0 then 
'yes, so this name is version specific 
'check whether we already have a 
'version-independent progid! 
independent = left(key, pos2-1) 
if not dict.Exists(independent) then 
'no, store it 
dict.Add key, 0 
end if 
else 
'this one is version-independent. 
'do we already have a version-dependent 
'progID in store? 
vdpid = "" 
for each element in dict 
if len(element)>len(key) then 
if left(element, len(key)+1)=key & "." then 
'yes, return name 
vdpid = element 
exit for 
end if 
end if 
next 
'any version dependent progID found? 
if vdpid="" then 
'no, add to store 
dict.add key, 0 
else 
'yes, replace 
dict.Remove vdpid 
dict.add key, 0 
end if 
end if 
end if 
next 
MsgBox dict.Count & " Objects found!" 
for each key in dict 
list = list & key & vbCrlf 
next 
MsgBox list 
outputfile = "C:\OBJECT.TXT" 
set fs = CreateObject("Scripting.FileSystemObject") 
set output = fs.CreateTextFile(outputfile, true) 
print dict.Count & " Objects found!" 
Print list 
output.close 
wshshell.run outputfile 
sub Print(text) 
'寫信息到記錄文件 
output.WriteLine text 
end sub 

上一篇:vbs實(shí)現(xiàn)的eMule電驢自動(dòng)關(guān)機(jī)腳本代碼

欄    目:vb

下一篇:高手必看的vbs的至尊境界

本文標(biāo)題:用vbs列出機(jī)器上所有能調(diào)用的組件

本文地址:http://mengdiqiu.com.cn/a1/vb/7652.html

網(wǎng)頁(yè)制作CMS教程網(wǎng)絡(luò)編程軟件編程腳本語(yǔ)言數(shù)據(jù)庫(kù)服務(wù)器

如果侵犯了您的權(quán)利,請(qǐng)與我們聯(lián)系,我們將在24小時(shí)內(nèi)進(jìn)行處理、任何非本站因素導(dǎo)致的法律后果,本站均不負(fù)任何責(zé)任。

聯(lián)系QQ:835971066 | 郵箱:835971066#qq.com(#換成@)

Copyright © 2002-2020 腳本教程網(wǎng) 版權(quán)所有