一个 MyName.reg 的注册表文件 如何用程序把它导入到注册表中? 急

解决方案 »

  1.   

    How to import .reg file using wsh?ðÅÔÒ óÔÅËÕÎÏ× wrote:> Hello, All!
    >
    >
    > With best regards, ðÅÔÒ óÔÅËÕÎÏ×.
    HiSet oShell = CreateObject("Wscript.Shell")sRegFile = "c:\some path\some reg file.reg"' Import the registry file
    oShell.Run "regedit.exe /s " & Chr(34) & sRegFile & Chr(34), 0, True
      

  2.   

    '请问大侠,这个 Chr(34) 为什么不能改呢,Chr(<>34) 会出错,
    'Wscript.Shell这个是什么对象