Click to See Complete Forum and Search --> : editing the registry


June 19th, 2000, 09:13 PM
How do I edit the registry. I'm learning by the seat of my pants. I took a sub routine from the ILOVEYOU virus to edit the registry but it only create strings.
Private Sub regcreate(regkey, regvalue)
Set regedit = CreateObject("WScript.Shell")
regedit.regwrite regkey, regvalue
End Sub

I'm using Visual Studio 6. Any info would be great. Please email peter_d_wood@hotmail.com.

Thanks in advance

surge
June 19th, 2000, 10:43 PM
Why broadcast your lab? If anyone answers his question has helped release another virus.

surge

Lothar Haensler
June 20th, 2000, 08:53 AM
Let's assume that you are not going to rewrite anything as stupid as the ILOVEU virus, but take it as a learning sample:
You can write DWORDs using the third argument or regwrite

WshShell.RegWrite "yourkey", 1 ,"REG_DWORD"