What is the Difference between .com and .exe files
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

I stand to be corrected but, .com files are generally known as command files, they are small programs which run a fixed set of procedures, whereas a .exe is an executable which is in fact more like an application. There is a very fine line between them and there are examples of each which could be classified as the other, for example the common "MSCDEX.EXE" is more of a fixed command set such as a .com file.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
They are both executable file formats, and unless you know assembly, the difference won't make much sense (it probably won't make sense anymore :), the difference was more important in the old MS-DOS days). From a user perspective, .com files are usually 'small' programs, and .exe files are the normal executables.

From an assembly language point, .com files are always loaded in a specific address, and unless you know what you are doing, they can only use one memory segment (64K). .exe files contain relocatable code, and don't have the segment restriction. .com files were loaded a little bit faster in the old days.

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.