.NET Fiddle

CSharp · Console

/Program.cs

using System;
using System.IO;

public class Program
{
	public static void Main()
	{
		string path1 = @"foo...bar..";
		string fullPath;
		fullPath = Path.GetFullPath(path1);
		Console.WriteLine("GetFullPath('{0}') returns '{1}'", path1, fullPath);
		Console.WriteLine("Hello World");
	}
}
;