Može li ekstenzija datoteka EXE uvijek biti zamijenjena COM?

Sadržaj:

Može li ekstenzija datoteka EXE uvijek biti zamijenjena COM?
Može li ekstenzija datoteka EXE uvijek biti zamijenjena COM?

Video: Može li ekstenzija datoteka EXE uvijek biti zamijenjena COM?

Video: Može li ekstenzija datoteka EXE uvijek biti zamijenjena COM?
Video: Make Conference Call on iPhone! [How To] - YouTube 2024, Travanj
Anonim
Ako ste ikada čuli za promjenu proširenja datoteke s EXE na COM, možda se pitate je li to samo moglo raditi na nekoliko rijetkih datoteka ili ako bi radilo na gotovo svim EXE datotekama koje imate. Danas SuperUser Q & A post ima odgovor na pitanje čudnog čitatelja.
Ako ste ikada čuli za promjenu proširenja datoteke s EXE na COM, možda se pitate je li to samo moglo raditi na nekoliko rijetkih datoteka ili ako bi radilo na gotovo svim EXE datotekama koje imate. Danas SuperUser Q & A post ima odgovor na pitanje čudnog čitatelja.

Današnja pitanja i odgovori nam se javljaju zahvaljujući SuperUseru - podjele Stack Exchange-a, zajednice-driven grupiranja Q & A web stranica.

Pitanje

SuperUser čitač Royi Namir želi znati hoće li EXE ekstenzija datoteka uvijek biti zamijenjena COM-om ?:

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.

Može li EXE ekstenzija datoteka uvijek biti zamijenjena COM-ovim?

Odgovor

Math Man za suradnika SuperUser ima odgovor za nas:

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]

Imate li nešto za objašnjenje? Zvuči u komentarima. Želite li pročitati više odgovora od drugih tehnoloških korisnika Stack Exchangea? Pogledajte ovdje cijelu raspravu.

Preporučeni: