Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

After taking a look at the listed processes in Window's TaskManager, I've noticed that there are some process that has a different extension other than .exe. I then opened the folder location of one of those processes and their extension is the same as they are shown in TaskManager. So, I was wondering how they do it. I just wanted to learn how its done.

I've tried renaming my application with a different extension and it didn't run.

Why am I seeking answers to this question? For security purposes.

share|improve this question

migrated from stackoverflow.com May 8 '13 at 4:44

This question came from our site for professional and enthusiast programmers.

    
Out of curiosity, why do you want to do this? The .exe extension is specifically there to mark executable files. –  templatetypedef May 8 '13 at 4:05
1  
Seconding @templatetypedef. This is suspicious as hell, LOL. –  Maggy May May 8 '13 at 4:06
    
What code are you using to run it with? Is it reporting any errors, and if so which? –  Tony D May 8 '13 at 4:06
    
Are you creating Example.exe by compiling c++ file? –  ritesh_nitw May 8 '13 at 4:08
4  
Do you have any examples? I just started Task Manager and I couldn't see anything but .exe files listed. –  Mark Ransom May 8 '13 at 4:21

1 Answer 1

Indirectly, the command line "start foo.abc" will run an executable renamed from foo.exe.

More directly, edit the registry. In HKEY_CLASSES_ROOT, create a new Key with the name .abc. and set the default value to abcfile.

Under abcfile, make key, name it Shell, and under that, create a new key named open, and under that, create another key named command. Now copy the contents from exefile and copy the contents over. You may want to search for other instances if ".exe" in the registry to find the appropriate contents, as they seem to change from across Windows versions.

This all of course assumes you have administrator access, because you would of course not do this on any system but your own. :)

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.