CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Guest

    editing the registry

    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 [email protected].

    Thanks in advance


  2. #2
    Join Date
    Jul 1999
    Posts
    15

    Re: editing the registry

    Why broadcast your lab? If anyone answers his question has helped release another virus.

    surge


  3. #3
    Join Date
    May 1999
    Posts
    3,332

    Re: editing the registry

    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"


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured