Get full path
using System; using System.IO; class Test { public static void Main() { string path3 = @"temp"; Console.WriteLine(Path.GetFullPath(path3)); } }