The Replace function seems suitable:
string input = @"c:abcdef";
string result = input.Replace(@"", "/");
And be careful with a common gotcha:
Due to string immutability in .NET this function doesn't modify the string instance you are invoking it on => it returns the result.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…