CmisSync.Controller.AddToBookmarks C# (CSharp) Method

AddToBookmarks() public method

Add CmisSync to the user's Windows Explorer bookmarks.
public AddToBookmarks ( ) : void
return void
        public override void AddToBookmarks()
        {
            string user_profile_path = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile);
            string shortcut_path = Path.Combine(user_profile_path, "Links", ShortcutName);

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

            Shortcut shortcut = new Shortcut();

            shortcut.Create(FoldersPath, shortcut_path, Forms.Application.ExecutablePath, 0);
        }