function GenerateUniqueName(Path: String; const Extension: String): String;
Generates a unique filename for a file in the specified path with the specified extension.