Lets say I had code that looked for a any file called cat in c:\...using the format \cat.* Once my program has found that, how can I get it to tell me what extension it is in a msg box.....

Should look something like this

if Dir$(\cat & ".*") <> "" then
msgbox ????????????????
end if

Help me out with second line...trying to find what .* of cat is...thanks for the help!!