Bisakah EXE Ekstensi File Selalu Diganti dengan COM?

Daftar Isi:

Bisakah EXE Ekstensi File Selalu Diganti dengan COM?
Bisakah EXE Ekstensi File Selalu Diganti dengan COM?

Video: Bisakah EXE Ekstensi File Selalu Diganti dengan COM?

Video: Bisakah EXE Ekstensi File Selalu Diganti dengan COM?
Video: Bagaimana Mengetahui Iphone Anda Di Lacak - YouTube 2024, April
Anonim
Jika Anda pernah mendengar tentang mengubah ekstensi file dari EXE ke COM, Anda mungkin bertanya-tanya apakah itu hanya mampu mengerjakan beberapa file langka atau apakah itu akan berfungsi pada hampir semua file EXE yang Anda miliki. Posting SuperUser Q & A saat ini memiliki jawaban untuk pertanyaan pembaca yang ingin tahu.
Jika Anda pernah mendengar tentang mengubah ekstensi file dari EXE ke COM, Anda mungkin bertanya-tanya apakah itu hanya mampu mengerjakan beberapa file langka atau apakah itu akan berfungsi pada hampir semua file EXE yang Anda miliki. Posting SuperUser Q & A saat ini memiliki jawaban untuk pertanyaan pembaca yang ingin tahu.

Sesi Tanya & Jawab Hari ini hadir untuk memberi kami SuperUser - subdivisi Stack Exchange, pengelompokan situs web Q & A berbasis komunitas.

Pertanyaan

Pembaca SuperUser Royi Namir ingin tahu apakah ekstensi file EXE selalu dapat diganti dengan ekstensi COM ?:

Our antivirus software refused to let me copy an EXE file into my Windows 7 startup folder (calc.exe, for example) since it is an EXE file. I then changed the file extension from EXE to COM on the file and was able to easily copy it into the folder without problems (very professional).

And of course, calc.com works just as well as calc.exe, which got me to wondering. When will a program with an EXE file extension not work when the extension is changed to COM? Almost every EXE file that I have checked has worked. I would love to know the reasons for the “why and why not” of the matter.

Bisakah ekstensi file EXE selalu diganti dengan yang COM?

Jawabannya

Penyumbang Super User, Math Man memiliki jawabannya untuk kami:

It has to do with the internal format of the file. Originally, COM files were simple memory images and EXE files had lots of headers associated with them. As a result, you could not rename them.

As time went on and they had to make things backward compatible, Microsoft changed it so that the operating system looks at the file itself to determine what type of file it is instead of the extension. As a result, when you run the renamed file, Windows ignores the extension entirely.

Visit the links below for a more detailed and extensive explanation.

What is the Difference Between.com,.exe, and.bat? [StackOverflow]

What’s the difference between the COM and EXE extensions? [Microsoft Developer Blog]

Memiliki sesuatu untuk ditambahkan ke penjelasan? Bicaralah di komentar. Ingin membaca lebih banyak jawaban dari pengguna Stack Exchange yang paham teknologi lainnya? Lihat diskusi lengkap di sini.

Direkomendasikan: