Article View: comp.sys.ibm.pc.misc
Article #8851Re: Need to change name of AUTOEXEC
From: Tim Campbell
Date: Mon, 01 Apr 1991 13:18
Date: Mon, 01 Apr 1991 13:18
45 lines
2358 bytes
2358 bytes
In article <9103291744.AA27144@cwns1.INS.CWRU.Edu>, aa581@cleveland.Freenet.Edu (Sandra Rozhon) writes:
>
> In a message from (chrisb@hubcap.clemson.edu (Chris Behrens))
>
>>Is there a program that will allow me to change the name of the file
>>that COMMAND.COM looks for when booting ?? By default, it looks for and
>>executes AUTOEXEC, i want to name it something else, maybe place it in a
>>subdirectory or something. Simply running a different BAT file from
>>within the AUTOEXEC is not what I want.
>
>
> Go ahead and create the .BAT file you want to use in whatever
> subdirectory you wish, then in your AUTOEXEC.BAT have only one line that
> refers to that batch file.
>
> Example:
>
> (contents of your AUTOEXEC.BAT will look like this)
> c:\batchfiles\newauto
>
>
> In \batchfiles you would have your NEWAUTO.BAT that contains all the
> things your old AUTOEXEC.BAT had.
>
>
>
> Sandra Rozhon (aa581@cleveland.freenet.edu)
--
Sorry I missed the original - I've done this before. I beleive that if you
take a hex-editor (debug will work - I used PC-tools) and load the invisible
file (IBMDOS.SYS) you'll notice that the name of the file to execute is
spelled out (located near the end of the file - AUTOEXEC.BAT) - I simply
renamed this to a different file - say, AUTOBOOT.BAT.
I did this because I didn't want people messing with the file, so I created
it and hid it.
-Tim
---------------------------------------------------------------------------
In real life: Tim Campbell - Electronic Data Systems Corp.
Usenet: campbell@dev8.mdcbbs.com @ McDonnell Douglas M&E - Cypress, CA
also: tcampbel@einstein.eds.com @ EDS - Troy, MI
CompuServe: 71631,654 Prodigy: MPTX77A
P.S. If anyone asks, just remember, you never saw any of this -- in fact, I
wasn't even here.
Technical Details
Message-ID:
<1991Apr1.131809.1@dev8o.mdcbbs.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!samsung!uunet!dev8o.mdcbbs.com!campbellReferences:
<9103291744.AA27144@cwns1.INS.CWRU.Edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!samsung!uunet!dev8o.mdcbbs.com!campbell From: campbell@dev8o.mdcbbs.com (Tim Campbell) Newsgroups: comp.sys.ibm.pc.misc Subject: Re: Need to change name of AUTOEXEC Message-ID: <1991Apr1.131809.1@dev8o.mdcbbs.com> Date: 1 Apr 91 13:18:09 GMT References: <9103291744.AA27144@cwns1.INS.CWRU.Edu> Organization: McDonnell Douglas M&E, Cypress CA Lines: 45 Nntp-Posting-Host: dev8o Nntp-Posting-User: campbell