Path.ChangeExtension in c#

Madhu.b.rokkam
Posted by Madhu.b.rokkam under C# category on | Points: 40 | Views : 3347
static void Main(string[] args)
{
string path = Path.ChangeExtension(@"C:\sample.exe", "bin");
Console.WriteLine(path);
Console.Read();
}


Changes the extension of the path string

Comments or Responses

Login to post response