Re: add .reg file inside VB6
Explain WHAT you are trying to do.
Re: add .reg file inside VB6
This is just an example , as some .reg file is quite long and in different location like above.
Instead of generate a .reg file and and use
Shell ("regedit /s C:\xxx.reg)
I want to run the contents of the xxx.reg from inside VB6 like :
CreateObject("WScript.Shell").RegWrite "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\CleanRubbish", "Clean.exe"
If the xxx.reg is very long , how can I do it like above in VB6
Re: add .reg file inside VB6
You could use a variable instead of putting the literal text on that line.
Of course I would not use the Wscript object at all but it should do,