相关代码 |
|
导入注册表设置 You can use just a few lines of code to import Registry settings. If you have an application called myapp.exe and a Registry file called myapp.reg, the following code will put those settings into the Registry without bothering the user. Dim strFile As String strFile = App.Path & "\" & opts.AppExeName & ".reg" If Len(Dir$(strFile)) > 1 Then lngRet = Shell("Regedit.exe /s " & strFile, vbNormalFocus) End If