Huhu, ich versuche gerade mein Programm in die autostart zu kopieren, was aber nicht geht.- Warum ist mir ein Rätsel :/
PHP Code:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim autostart As String = Application.ExecutablePath
Dim autostart1 As String = Environment.GetFolderPath(Environment.SpecialFolder.Startup) & "/" & IO.Path.GetFileName(autostart1)
Try
IO.File.Copy(autostart, autostart1)
Catch ex As Exception
End Try
HTML Code:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim autostart As String = Application.ExecutablePath
Dim autostart1 As String = Environment.GetFolderPath(Environment.SpecialFolder.Startup) & "/" & IO.Path.GetFileName(autostart1)
Try
IO.File.Copy(autostart, autostart1)
Catch ex As Exception
End Try