谁给我提供的 我忘记了
number=adir(array,"*.ocx")
for nn=1 to number
if !file(lpBuffer+"\"+array(nn,1))
rename sys(5)+sys(2003)+"\"+array(nn,1) to lpBuffer+"\"+array(nn,1)
endi
REGSVR_32(lpBuffer+"\"+array(nn,1),.t.)&&←注册-注销→
REGSVR_32(lpBuffer+"\"+array(nn,1),.f.)
endf
wait clea
retu
proc regsvr_32
para lpcRegFilename,lplIsreg
If File(lpcRegFilename)
if lplisreg
Run /n regsvr32 "&lpcRegFilename" /s
else
Run /n regsvr32 /u "&lpcRegFilename" /s
endi
Endif