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. .EXE file association

.EXE file association

Scheduled Pinned Locked Moved C#
c++hardwarequestion
3 Posts 2 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.
  • H Offline
    H Offline
    Harkamal Singh
    wrote on last edited by
    #1

    As .txt opens with notepad as default, with what program .exe opens with? I am aware, .exe is native to operating system. However i have a packaged program which is embedded into main program and is extracted to temp folder before execution..however with .tmp extention assigned. I can rename .tmp with .exe, I am just digging into windows internals and curious how this works. I guess somefunction of rundll.dll is capable of executing .tmp files, but i am not quite informed about it. Also, noticed that installshield and other installers copies executables as .tmp files and later executes them thanks well in advance. h.

    L 1 Reply Last reply
    0
    • H Harkamal Singh

      As .txt opens with notepad as default, with what program .exe opens with? I am aware, .exe is native to operating system. However i have a packaged program which is embedded into main program and is extracted to temp folder before execution..however with .tmp extention assigned. I can rename .tmp with .exe, I am just digging into windows internals and curious how this works. I guess somefunction of rundll.dll is capable of executing .tmp files, but i am not quite informed about it. Also, noticed that installshield and other installers copies executables as .tmp files and later executes them thanks well in advance. h.

      L Offline
      L Offline
      Luc Pattyn
      wrote on last edited by
      #2

      The EXE files are not opened by some other program, they run as is, that's why they are called executables ! And they each can have quite different functionality. This is different from other files (often called documents): TXT/DOC/XLS/PPT... files always open with the same program (typ. Notepad, Word, Excel, PowerPoint...) :)

      Luc Pattyn [Forum Guidelines] [My Articles]


      this weeks tips: - make Visual display line numbers: Tools/Options/TextEditor/... - show exceptions with ToString() to see all information - before you ask a question here, search CodeProject, then Google


      H 1 Reply Last reply
      0
      • L Luc Pattyn

        The EXE files are not opened by some other program, they run as is, that's why they are called executables ! And they each can have quite different functionality. This is different from other files (often called documents): TXT/DOC/XLS/PPT... files always open with the same program (typ. Notepad, Word, Excel, PowerPoint...) :)

        Luc Pattyn [Forum Guidelines] [My Articles]


        this weeks tips: - make Visual display line numbers: Tools/Options/TextEditor/... - show exceptions with ToString() to see all information - before you ask a question here, search CodeProject, then Google


        H Offline
        H Offline
        Harkamal Singh
        wrote on last edited by
        #3

        duh ! ;P Here is the article to load .exe into memory and then execute it programatically... http://www.codeproject.com/useritems/LoadExeIntoAssembly.asp[^]

        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