How to get the cookies path in C#

1 Answer

0 votes
using System;

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

            Console.WriteLine(path);
        }
    }
}

/*
run:
  
C:\Users\Avi\AppData\Roaming\Microsoft\Windows\Cookies

*/

 



answered Jan 13, 2017 by avibootz

Related questions

1 answer 125 views
2 answers 225 views
1 answer 137 views
2 answers 166 views
166 views asked Aug 11, 2023 by avibootz
1 answer 106 views
106 views asked Aug 7, 2023 by avibootz
...