Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!psuvax1!brutus.cs.uiuc.edu!apple!bloom-beacon!eru!luth!sunic!tut!santra!saha.hut.fi!c37189h From: c37189h@saha.hut.fi (Suomalainen Harri Olavi) Newsgroups: comp.sys.ibm.pc Subject: Re: .COM and .EXE files Message-ID: <25727@santra.UUCP> Date: 15 Oct 89 15:59:09 GMT References: <00092@citasim.UUCP> Sender: news@santra.UUCP Reply-To: c37189h@saha.hut.fi (Suomalainen Harri Olavi) Organization: Helsinki University of Technology, Finland Lines: 15 In article <00092@citasim.UUCP> agray@citasim.UUCP (andrew gray) writes: > > This got me to wondering about COM and EXE files, and whether there >would be any way to fool MS-DOS (or command.com) into using other extenders >for executable files, and ignoring COM and EXE altogether. > Has this been done? Is it possible? It sure is easy to do. You could do it the following way: 1. Rename file.com or file.exe to eg. file.foo . When you're willing to run it 2. type file.foo . If it has an exe signature it will be considered as an .exe file, if not as .com! I tried it this way and it did work! --- E-mail: c37189h@saha.hut.fi * If you're feeling good, don't * UUCP: ...!mcvax!santra!saha!c37189h * worry - You'll get over it! *