फ़ाइल एक्सटेंशन EXC हमेशा COM के साथ बदला जा सकता है?

विषयसूची:

फ़ाइल एक्सटेंशन EXC हमेशा COM के साथ बदला जा सकता है?
फ़ाइल एक्सटेंशन EXC हमेशा COM के साथ बदला जा सकता है?

वीडियो: फ़ाइल एक्सटेंशन EXC हमेशा COM के साथ बदला जा सकता है?

वीडियो: फ़ाइल एक्सटेंशन EXC हमेशा COM के साथ बदला जा सकता है?
वीडियो: लिटिल बेबी सो जा | 3D Hindi Rhymes For Children | Hindi Rhymes For Kids I Hindi Nursery Rhymes - YouTube 2024, अप्रैल
Anonim
यदि आपने कभी भी EXE से COM तक फ़ाइल का विस्तार बदलने के बारे में सुना है, तो आप सोच सकते हैं कि यह केवल कुछ दुर्लभ फ़ाइलों पर काम करने में सक्षम था या यदि यह आपके पास लगभग किसी भी EXE फ़ाइल पर काम करेगा। आज के सुपर यूज़र क्यू एंड ए पोस्ट में एक जिज्ञासु पाठक के सवाल का जवाब है।
यदि आपने कभी भी EXE से COM तक फ़ाइल का विस्तार बदलने के बारे में सुना है, तो आप सोच सकते हैं कि यह केवल कुछ दुर्लभ फ़ाइलों पर काम करने में सक्षम था या यदि यह आपके पास लगभग किसी भी EXE फ़ाइल पर काम करेगा। आज के सुपर यूज़र क्यू एंड ए पोस्ट में एक जिज्ञासु पाठक के सवाल का जवाब है।

आज का प्रश्न और उत्तर सत्र हमारे पास सुपरयूसर की सौजन्य है - स्टैक एक्सचेंज का एक उपविभाग, क्यू एंड ए वेब साइट्स का एक समुदाय संचालित समूह।

प्रश्न

सुपर यूज़र रीडर रॉय नमीर जानना चाहते हैं कि EXE फ़ाइल एक्सटेंशन हमेशा 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.

EXE फ़ाइल एक्सटेंशन हमेशा COM वाले के साथ प्रतिस्थापित किया जा सकता है?

उत्तर

सुपरयूसर योगदानकर्ता मैथ मैन का जवाब हमारे लिए है:

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]

स्पष्टीकरण में जोड़ने के लिए कुछ है? टिप्पणियों में विचार व्यक्त करो। अन्य तकनीक-समझदार स्टैक एक्सचेंज उपयोगकर्ताओं से अधिक उत्तरों पढ़ना चाहते हैं? यहां पूर्ण चर्चा धागा देखें।

सिफारिश की: