StartupMNGR

November 06, 2019

Reading time ~1 minute

Manage the autostart of all your programs.


Features

  • Add/Delete programs to the startup folder
  • Testrun program
  • Add programs via Drag&Drop
  • Add programs via typed in path

Program screenshot:
StartupMNGR


Function to list all *.lnk files

private void populateListbox()
        {
            {
                string allowdExtension = ".lnk";
                //Clear the Listbox
                lb_StartupPrograms.Items.Clear();
                //Get each file in StartupPath
                foreach (string file in Directory.GetFiles(Environment.GetFolderPath(Environment.SpecialFolder.Startup)))
                {
                    //Only add Shortcut files
                    if (allowdExtension.Contains(".lnk"))
                    {
                        //Cut everything except the filename + extension from the path
                        string shortfilename = Path.GetFileName(file);
                        //Add the shortend path to the listbox
                        lb_StartupPrograms.Items.Add(shortfilename);
                    }
                }
            }
        }

Github Repository