simplest cheat way is to create an empty file Tmp.doc / tmp.gif etc it doesn't need 
real data in it then make the call and delete it.

-----Original Message-----
From: vss [mailto:[EMAIL PROTECTED]]
Sent: Friday, 17 January 2003 8:59 a.m.
To: Multiple recipients of list delphi
Subject: [DUG]: SHGetFileInfo and File Type


Hi all.
I want to get the file type of a given extension so I was 
using "SHGetFileInfo"
The problem IS, that in order for this to work, the file must reside on 
a drive.
I want to beable to pass in a file name with no extension and have it 
return the file type. i.e .DOC = Word Document etc.

Anyone know how to do this?

Thanks, Jeremy 

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/

Reply via email to