using System;
public class Program
{
public static void Main()
string path = @"D:\\folder\\folder/folder/folder/folder";
string result = path.Replace(@"\\", @"\").Replace("/", @"\");
Console.WriteLine(result);
}