Answers for "how to get the path in c#"

C#
1

get program path c#

using System;
class Program
{
  static void Main(string[] args)
  {
  string path;
  path = AppDomain.CurrentDomain.BaseDirectory;
  }
}
Posted by: Guest on March-03-2021
1

get documents path c#

String path = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
Posted by: Guest on February-26-2021

Code answers related to "how to get the path in c#"

C# Answers by Framework

Browse Popular Code Answers by Language