获取路径的名称和后缀 string fileName = Path.GetFileNameWithoutExtension(fileName);string dot = Path.GetExtension(fileName).ToLower();//后缀