static void Main(string[] args) { string path = Path.ChangeExtension(@"C:\sample.exe", "bin"); Console.WriteLine(path); Console.Read(); }
Login to post response