top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How to Get the Path to special folder using C# ?

0 votes
281 views
How to Get the Path to special folder using C# ?
posted Jun 17, 2016 by Sathyasree

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.IO;
namespace AbundantcodeConsoleApp
{
    internal class Program
    {
        private static void Main(string[] args)
        {
            foreach (var specialFolder in Enum.GetValues(typeof(Environment.SpecialFolder)))
            {
                string FolderPath = Environment.GetFolderPath((Environment.SpecialFolder)specialFolder);
                Console.WriteLine(FolderPath);
            }
           Console.ReadLine();
        }     
    }

}
answer Jun 17, 2016 by Shivaranjini
...