Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!samsung!rex!uflorida!mlb.semi.harris.com!trantor.harris-atd.com!charybdis!sonny From: sonny@charybdis.harris-atd.com (Bob Davis) Newsgroups: comp.sys.ibm.pc.misc Subject: Re: Need to change name of AUTOEXEC Message-ID: <5998@trantor.harris-atd.com> Date: 5 Apr 91 02:50:13 GMT References: <9103291744.AA27144@cwns1.INS.CWRU.Edu> <3005@krafla.rhi.hi.is> Sender: news@trantor.harris-atd.com Reply-To: sonny@trantor.harris-atd.com (Bob Davis) Organization: Advanced Technology Dept., Harris ESS, Melbourne, FL Lines: 28 In article <3005@krafla.rhi.hi.is> frisk@rhi.hi.is (Fridrik Skulason) 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. > >The easiest way is just to patch COMMAND.COM. Just run NU, search for >the text "AUTOEXEC", and change it to whatever you want. > I have not tried this but COMMAND.COM has an option /C that invokes any specified command. So might one execute any batchfil.bat one wishes on boot up by including the following line in CONFIG.SYS?: SHELL=COMMAND.COM /P /C batchfil.bat As I say, I have not tried this. But I think I shall. _____________________________________________________________________________ Bob Davis, UofALA alum \\ INTERNET: sonny@trantor.harris-atd.com | _ _ | Harris Corporation, ESS \\ UUCP: ...!uunet!x102a!trantor!sonny |_| |_| | | Advanced Technology Dept.\\ AETHER: K4VNO |==============|_/\/\/\|_| PO Box 37, MS 3A/1912 \\ VOICE: (407) 727-5886 | I SPEAK ONLY | |_| |_| | Melbourne, FL 32902 \\ FAX: (407) 729-3363 | FOR MYSELF. |_________|