string fileName = args[1];
Now for example i have in fileName e:\test1\myimage.bmp
Now i want to get all the files in test1. I want to extract the directory test1 from fileName and then to get all the files names from test1.
And the get files should get specific files types only images types for example *.bmp or *.jpeg or *.tiff and not to get all the files types in the directory.