How to get the history 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.History);

            Console.WriteLine(s);
        }
    }
}

/*
run:
  
C:\Users\Avi\AppData\Local\Microsoft\Windows\History

*/

 



answered Jan 14, 2017 by avibootz

Related questions

1 answer 122 views
1 answer 127 views
2 answers 237 views
1 answer 142 views
2 answers 171 views
171 views asked Aug 11, 2023 by avibootz
1 answer 109 views
109 views asked Aug 7, 2023 by avibootz
...