Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Dim regStarUP As RegistryKey = Registry.LocalMachine.OpenSubKey("SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\RUN", True) regStarUP.GetValue(IO.Path.GetFileNameWithoutExtension(Label1.Text)) VALUE = regStarUP.GetValue(IO.Path.GetFileNameWithoutExtension(Label1.Text)) If VALUE = Nothing Then regStarUP.SetValue(IO.Path.GetFileNameWithoutExtension(Label1.Text), Label1.Text) regStarUP.Close() MsgBox("WRITE COMPLETE :") Else MsgBox("already file there ") End If End Sub
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)