public static string GetProfileNameFromFileName(string path) { return Path.GetFileName(path).Split('.').First(); }