Binding .exe to other file type

Discussion in 'Programming' started by Visom76, Nov 22, 2011.

  1. #1
    I need some help on how to bind an executable file to a .jpg or .avi, etc so that when user clicks on the .jpg it will open and simultaneously run the .exe.
     
    Visom76, Nov 22, 2011 IP
  2. NetStar

    NetStar Notable Member

    Messages:
    2,471
    Likes Received:
    541
    Best Answers:
    21
    Trophy Points:
    245
    #2
    Perhaps possible in the old days of computers but not anymore. A JPG is a JPG. An AVI is an AVI. A JPG isn't executed the way a program is. And if you could bind an exe to a JPG and have it executed everytime that JPG is opened everyone would have 1 million viruses on their computers.
     
    NetStar, Dec 1, 2011 IP
  3. Isuru

    Isuru Active Member

    Messages:
    363
    Likes Received:
    6
    Best Answers:
    1
    Trophy Points:
    68
    #3
    I can do that, but I can't guarantee whether anti-virus programs detect it. If you spend money, I can customize the binding. Most security tools detect those kinds of things. But I can give a shot.
     
    Isuru, Dec 1, 2011 IP
  4. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #4
    A jpg or avi file gets opened by an exe file, it doesn't open by itself. You'd have to write an exe wrapper around the file, and then it would have an exe extension, not a jpg or avi extension.

    Since most people have extensions turned off in Explorer, you could name it whatever.jpg.exe, but only computer illiterates would click on a file that shows an extension when they have extensions disabled. (Which means that probably 90% of computer users would fall for your virus.)
     
    Rukbat, Dec 2, 2011 IP