I have the path and I need to get the name ofall files in the directory whos extention is *.___

how might I go about doing this on both windows and *.nix?