get file name from path base start string code example Example: C# get filebase name string name = Path.GetFileName(file);