Registry key editing vb6 startup
Posted
by Francesco D.
on Stack Overflow
See other posts from Stack Overflow
or by Francesco D.
Published on 2010-04-02T05:24:06Z
Indexed on
2010/04/02
5:33 UTC
Read the original article
Hit count: 231
Is it possible that someone here could explain how to use this code. Please keep in mind i am a complete amateur, so simplifications may be needed.
Private Const cPGM = "C:\VB Forum\startup\Example.exe"
Dim oShell As IWshShell_Class
Set oShell = New IWshShell_Class
oShell.RegWrite "HKLM\Software\Microsoft\Windows\CurrentVersion\Run\MyVBApp", _
cPGM, "REG_SZ"
How exactly is this code used? Is it saved as an .exe file and ran or what? Thanks for your prompt reply and informational feedback.
© Stack Overflow or respective owner