How Can know the file type when the file without extension ??

Hi

< xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /> 

I have 10 files in folder but all the files without extension Sad.. How Can I know the type for each file

 

And thanks with my best regarding

Fraas



Answer this question

How Can know the file type when the file without extension ??

  • alungwyther

    Hi!

    Since you are talking EPS, can you please tell haw can I Display an eps file in my windows form

    I'm new in this so please help me.

    Thanks!


  • InstantKarma

    Hi.
    What do you mean by type What do you want to do with the files some files can have multiple "types", say xml-files can be classified in many different ways, it depends what you want to do. All files are binary files.

    What is the folder name Where do the files come from
    What program do you use to list the files Do they have icons (explorer might need Tools->Folder Options->View->Hide extension.... to be turned off)
    What are the files named
     Can you send the contents (via notepad is best)

  • Dipendra

    OK, in that case, you need to read up on the eps file format, and work out how to examine the files to work out which is an eps, if you know one or more are, despite there being no file extensions.


  • vb2005

    Hi
    eps-files should start with "%!PS" and have "EPSF" on the first line (they are ASCII text files and, if I remember correctly, can end a line with either CR, LF or CR/LF).

    For more information, try: https://partners.adobe.com/public/developer/en/ps/5002.EPSF_Spec.pdf
    http://partners.adobe.com/public/developer/en/ps/5003.PPD_Spec_v4.3.pdf

    If the files comes from mac and uses fonts, you will have issues, because fonts are named differently in mac and PC (postscript name vs name+style, I think).

    Hope this helps

    (: BTW: it is possible to extract multiple .EPS files from a single .PS, if you have .PS files there too. :)



  • nblankton

    thanks for your answer

    < xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /> 

    exactly my target to extract the (*.eps) file , it's Adobe files

     

    I have 10 files in folder without any extension I want to extract from them only the (*.eps) files

     

    Thanks with my best regarding

    Fraas

     


  • kregger

    You could try to load them with Bitmap.FromFile to see if they are a valid image type.  Other than that, you really can't tell unless you have specific formats in mind.

    Or if you mean without using code, open them in notepad or a hex editor and see if you can see any headers that tell you.

  • How Can know the file type when the file without extension ??