Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. How to know a EXE file was written by .net language or not?

How to know a EXE file was written by .net language or not?

Scheduled Pinned Locked Moved C#
csharptutorialquestion
10 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    goldli
    wrote on last edited by
    #1

    How to know a EXE file was written by .net language or not?

    C M D D 4 Replies Last reply
    0
    • G goldli

      How to know a EXE file was written by .net language or not?

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      In what context ? You can run reflector on it and see if you can see the source code. You can examine the header, if you want to do it within a program.

      Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

      G 2 Replies Last reply
      0
      • C Christian Graus

        In what context ? You can run reflector on it and see if you can see the source code. You can examine the header, if you want to do it within a program.

        Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

        G Offline
        G Offline
        goldli
        wrote on last edited by
        #3

        i mean use C# to do that

        C 1 Reply Last reply
        0
        • G goldli

          How to know a EXE file was written by .net language or not?

          M Offline
          M Offline
          Muammar
          wrote on last edited by
          #4

          Good question, I've been having the same question.. for java, it's easily Identified by it's ugly purple controls "if not using UIs" but .Net:confused:


          Smile: A curve that can set a lot of things straight! (\ /) (O.o) (><)

          G 1 Reply Last reply
          0
          • M Muammar

            Good question, I've been having the same question.. for java, it's easily Identified by it's ugly purple controls "if not using UIs" but .Net:confused:


            Smile: A curve that can set a lot of things straight! (\ /) (O.o) (><)

            G Offline
            G Offline
            goldli
            wrote on last edited by
            #5

            just wait for the answer.

            1 Reply Last reply
            0
            • G goldli

              i mean use C# to do that

              C Offline
              C Offline
              Christian Graus
              wrote on last edited by
              #6

              Then you need to find out exactly how the file itself marks that it is .NET, and write code to read the head of the file and examine it for this info.

              Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

              1 Reply Last reply
              0
              • C Christian Graus

                In what context ? You can run reflector on it and see if you can see the source code. You can examine the header, if you want to do it within a program.

                Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

                G Offline
                G Offline
                goldli
                wrote on last edited by
                #7

                i think i know the way you said before,but,i do not know the code.

                1 Reply Last reply
                0
                • G goldli

                  How to know a EXE file was written by .net language or not?

                  D Offline
                  D Offline
                  D111
                  wrote on last edited by
                  #8

                  I cant remember where exactly, but thers PE00 somewhere in the header.

                  --- The sum of the intelligence of the world is constant. The total number of people is always increasing.

                  1 Reply Last reply
                  0
                  • G goldli

                    How to know a EXE file was written by .net language or not?

                    D Offline
                    D Offline
                    Douglas Troy
                    wrote on last edited by
                    #9

                    You could use .NET Reflector[^] to point it at the .EXE and see if it will disassemble.


                    :..::. Douglas H. Troy ::..
                    Bad Astronomy |VCF|wxWidgets|WTL

                    G 1 Reply Last reply
                    0
                    • D Douglas Troy

                      You could use .NET Reflector[^] to point it at the .EXE and see if it will disassemble.


                      :..::. Douglas H. Troy ::..
                      Bad Astronomy |VCF|wxWidgets|WTL

                      G Offline
                      G Offline
                      goldli
                      wrote on last edited by
                      #10

                      yes,the Reflector could do that,but,i want do that with my C# code .

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups