I have a problem with GetFileName when getting directory names. If the directory name contains a dot as in Mydir.ectory all I get is Mydir.
If there is no dot as in Mydirectory then it works and I get Mydirectory.
I am guessing it has something to do with extensions. How can I avoid this and get the full directory name even if it contains a dot.