CmisSync.Controller.CreateStartupItem C# (CSharp) Méthode

CreateStartupItem() public méthode

Add CmisSync to the list of programs to be started up when the user logs into Windows.
public CreateStartupItem ( ) : void
Résultat void
        public override void CreateStartupItem()
        {
            string startup_folder_path = Environment.GetFolderPath(Environment.SpecialFolder.Startup);
            string shortcut_path = Path.Combine(startup_folder_path, ShortcutName);

            if (File.Exists(shortcut_path))
                File.Delete(shortcut_path);

            string shortcut_target = Forms.Application.ExecutablePath;

            Shortcut shortcut = new Shortcut();
            shortcut.Create(shortcut_target, shortcut_path);
        }