como saber de que tipo es un archivo?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • goosfancito

    como saber de que tipo es un archivo?

    hola.

    Quiero saber como hacer para identificar de que tipo es un archivo,
    como ser: quiero que el usuario seleccione un archivo excel y despues
    poder verificar que asi es y que no es un archivo que se renombro con
    extension excel.

    Graicas.
  • Teemu

    #2
    Re: como saber de que tipo es un archivo?


    "goosfancit o" <goosfancito@gm ail.comkirjoitt i viestissä
    news:4bc2e781-de15-40d9-846e-8ceb9c5d1dff@e5 3g2000hsa.googl egroups.com...
    hola.
    >
    Quiero saber como hacer para identificar de que tipo es un archivo,
    como ser: quiero que el usuario seleccione un archivo excel y despues
    poder verificar que asi es y que no es un archivo que se renombro con
    extension excel.
    Creo que podemos ayudarte mejor si escribimos en inglés. Aquí la misma
    pregunta en inglés:

    The original poster wants to know how he can be sure that a file is really
    made with Excel and not just renamed to have Excel's file extension.

    ******

    Is the file created with Excel 2007 or with older versions? XML formats are
    quite easy to recognize and here is some information about binary formats:


    Is it possible to try open the file with hidden Excel from Visual Basic or
    must it be done without Excel?

    -Teemu

    Comment

    • Cor Ligthert[MVP]

      #3
      Re: como saber de que tipo es un archivo?

      Teemu,

      Very nice answer, however will you next time add a row like by instance.

      This is an international newsgroup were because of that beside 6 languages
      there everywhere else the English version of Visual Studio is used, English
      is the used language. Please be so kind to confirm on that.

      For Spanish there is a very good VB for Net newsgroup where the conversation
      language is Spanish.

      Thanks in advance.

      Cor

      "Teemu" <tsirkia@hotmai l.comschreef in bericht
      news:GsmVj.1499 $uB3.613@reader 1.news.saunalah ti.fi...
      >
      "goosfancit o" <goosfancito@gm ail.comkirjoitt i viestissä
      news:4bc2e781-de15-40d9-846e-8ceb9c5d1dff@e5 3g2000hsa.googl egroups.com...
      >hola.
      >>
      >Quiero saber como hacer para identificar de que tipo es un archivo,
      >como ser: quiero que el usuario seleccione un archivo excel y despues
      >poder verificar que asi es y que no es un archivo que se renombro con
      >extension excel.
      >
      Creo que podemos ayudarte mejor si escribimos en inglés. Aquí la misma
      pregunta en inglés:
      >
      The original poster wants to know how he can be sure that a file is really
      made with Excel and not just renamed to have Excel's file extension.
      >
      ******
      >
      Is the file created with Excel 2007 or with older versions? XML formats
      are quite easy to recognize and here is some information about binary
      formats: http://sc.openoffice.org/excelfileformat.pdf
      >
      Is it possible to try open the file with hidden Excel from Visual Basic or
      must it be done without Excel?
      >
      -Teemu

      Comment

      • Teemu

        #4
        Re: como saber de que tipo es un archivo?


        "Cor Ligthert[MVP]" <notmyfirstname @planet.nlkirjo itti viestissä
        news:3EF27FBE-8BBE-4E5F-AABE-A5D2CDEF24B1@mi crosoft.com...
        Teemu,
        >
        Very nice answer, however will you next time add a row like by instance.
        >
        This is an international newsgroup were because of that beside 6 languages
        there everywhere else the English version of Visual Studio is used,
        English is the used language. Please be so kind to confirm on that.
        Actually I wrote to the original poster that we can help him better in
        English. But I also translated the question because I'm sure that somebody
        knows a good solution for this.

        But as I wrote we need to know something more to be able to help...

        -Teemu

        Comment

        • Cor Ligthert[MVP]

          #5
          Re: como saber de que tipo es un archivo?

          Teemu,

          Sorry,

          Creo que podemos ayudarte mejor si escribimos en inglés. Aquí la misma
          pregunta en inglés:

          I should have seen this "ingles" and "scribo" is in all latin languages
          almost the same.

          Cor

          "Teemu" <tsirkia@hotmai l.comschreef in bericht
          news:GsmVj.1499 $uB3.613@reader 1.news.saunalah ti.fi...
          >
          "goosfancit o" <goosfancito@gm ail.comkirjoitt i viestissä
          news:4bc2e781-de15-40d9-846e-8ceb9c5d1dff@e5 3g2000hsa.googl egroups.com...
          >hola.
          >>
          >Quiero saber como hacer para identificar de que tipo es un archivo,
          >como ser: quiero que el usuario seleccione un archivo excel y despues
          >poder verificar que asi es y que no es un archivo que se renombro con
          >extension excel.
          >
          Creo que podemos ayudarte mejor si escribimos en inglés. Aquí la misma
          pregunta en inglés:
          >
          The original poster wants to know how he can be sure that a file is really
          made with Excel and not just renamed to have Excel's file extension.
          >
          ******
          >
          Is the file created with Excel 2007 or with older versions? XML formats
          are quite easy to recognize and here is some information about binary
          formats: http://sc.openoffice.org/excelfileformat.pdf
          >
          Is it possible to try open the file with hidden Excel from Visual Basic or
          must it be done without Excel?
          >
          -Teemu

          Comment

          Working...