Win98. HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion下某主键

解决方案 »

  1.   

    Dim a as object,str as stringset a = createobject("Wscript.shell")str=a.regread("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion...)then str is the keyyou can search registry to get the key.
      

  2.   

    This way uses the WSCRIPT.SHELL a system COM component. This is the easiest way (comparing to API)Also you can use Dim a as Wscript.shell
    (rememeber to include the reference to wshom.ocx)(sorry I can not input Chinese characters)
      

  3.   

    for detailed information about WSH COM components. please refer to MSDN
      

  4.   

    新的 wsh 不支持注册表操作了。为防止恶意的网爷攻击
      

  5.   

    谢谢大家,不过chenyu5188(蓝色情调) 的例子执行出错。