How to get the Startup path in C#

1 Answer

0 votes
using System;

namespace ConsoleApplication_C_Sharp
{
    class Program
    {
        static void Main(string[] args)
        {
            string s = Environment.GetFolderPath(Environment.SpecialFolder.Startup);

            Console.WriteLine(s);
        }
    }
}

/*
run:
  
C:\Users\USER\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup

*/

 



answered Jan 14, 2017 by avibootz

Related questions

1 answer 156 views
156 views asked Jan 14, 2017 by avibootz
1 answer 125 views
2 answers 225 views
1 answer 137 views
2 answers 168 views
168 views asked Aug 11, 2023 by avibootz
1 answer 106 views
106 views asked Aug 7, 2023 by avibootz
...