David Thanks for your reply.
This shows some way, but wasn't exactly what I was looking for.
It just wanted to hand over the file to some function, and have the function based on the contents of the file (the header of the file?), determine which type it is.
After some digging around I stumbled onto the FindMimeFromData() function.
It think this one is the one I was looking for.
I also found it is available in the URLMON.dll.
The problem now is that I don't succeed in having it working from within VFP.
So if anybody can help me out on this.
ThanX.
>Yves,
>
>Check this article
http://www.levelextreme.com/wconnect/wc.dll?UniversalThread~?2,31,Forum=0,18,29>
>If you just want to send the file to it's registered program you can use ShellExecute() or the _shellexecute class. There's some examples over on m website.
>