Post subject: Change location of Autoexec.bat Posted: Sun May 06, 2012 10:44 am
Amateur Beta Collector
Joined Tue Mar 02, 2010 8:30 pm
Posts 147
Favourite OS Windows 7 and Windows Vista
Hello
I have an IBM Thinkpad 755cx with a dual boot of Windows 3.11 and 95a. I installed 95a after Windows 3.11. There is no autoexec.bat files in the 95 partition and when booting, it reads from the 3.11 one. They system still boots and works, but it encounters loads of errors whilst starting up and runs programs that aren't installed in 95.
So how do i change the path of autoexec.bat in Windows 95?
Post subject: Re: Change location of Autoexec.bat Posted: Sun May 06, 2012 12:48 pm
Amateur Beta Collector
Joined Wed May 02, 2012 12:57 am
Posts 165
Favourite OS Windows NT 3.x
Just a question; couldn't you use Windows 95a's built-in dual-boot mechanism to switch between 95's and 3.11's autoexec.bat? I'm a bit puzzled why it didn't set that up from the beginning, actually.
Post subject: Re: Change location of Autoexec.bat Posted: Sun May 06, 2012 1:57 pm
Amateur Beta Collector
Joined Wed Dec 07, 2011 10:49 am
Posts 233
Favourite OS Whistler Build 2419
3155ffGd wrote:
Just a question; couldn't you use Windows 95a's built-in dual-boot mechanism to switch between 95's and 3.11's autoexec.bat? I'm a bit puzzled why it didn't set that up from the beginning, actually.
Windows 95 is not NT, it doesn't have boot loader like that one.
Post subject: Re: Change location of Autoexec.bat Posted: Sun May 06, 2012 2:06 pm
Amateur Beta Collector
Joined Wed May 02, 2012 12:57 am
Posts 165
Favourite OS Windows NT 3.x
paul1678 wrote:
Windows 95 is not NT, it doesn't have boot loader like that one.
It can however dual-boot between itself and a previous version of DOS (I presume one is there because of 3.11). I know that because I have a setup like this here.
Post subject: Re: Change location of Autoexec.bat Posted: Sun May 06, 2012 3:12 pm
1337 Beta Collector
Joined Thu Nov 29, 2007 11:33 pm
Posts 3067
Location Where do you want to go today?
Favourite OS All Microsoft operating systems!
If you just want to move the AUTOEXEC.BAT file to a different location, I would first move the AUTOEXEC.BAT file to where you want it. Then, I would create a new AUTOEXEC.BAT file in the root directory, and set it to read the actual AUTOEXEC.BAT file. The only drawback here is that when using the option to examine each command (known as "Step by Step Configuration" in Windows 95 and later), it may just detect the single command to run the real AUTOEXEC.BAT file, and not any of the individual commands contained within it.
If what you want is to have two seperate AUTOEXEC.BAT files for each Windows installation, however, then I suggest you to use Windows 95's capability of maintaining two seperate versions of MS-DOS. Make changes to the AUTOEXEC.BAT file in the one version that relate to the one Windows installation, and then do the same while in the other version, only be sure to set it up for the other Windows installation.
If that's not possible, then I would create two seperate .BAT files that can both play the role of a proper AUTOEXEC.BAT, and when booting up, either execute the one for Windows 3.1, or execute the other for Windows 95.
_________________ Main operating system: Windows 8 Enterprise (Evaluation) Windows 8 real life sightings (not counting Windows Phone 8): 2 (Client)
Post subject: Re: Change location of Autoexec.bat Posted: Mon May 07, 2012 12:39 am
1337 Beta Collector
Joined Thu Nov 29, 2007 11:33 pm
Posts 3067
Location Where do you want to go today?
Favourite OS All Microsoft operating systems!
Unless you were to use the "Previous version of MS-DOS" feature in Windows 95 (there should be some information about it online, as well as how to enable it, but I haven't looked), I would make sure that no file is actually named AUTOEXEC.BAT. Rather, I would give both copies two different names, and when booting into Windows 3.11, execute the one at the command prompt, and when booting into Windows 95, execute the other at the command prompt.
Also, you might want to try different utilities, such as System Commander/V or whatever it's called (I haven't really used them, I've only seen them in advertisements and text references), since they might also help you with this. Of course, I don't gaurentee that they will necessarily work either, since I don't use them myself.
_________________ Main operating system: Windows 8 Enterprise (Evaluation) Windows 8 real life sightings (not counting Windows Phone 8): 2 (Client)
Post subject: Re: Change location of Autoexec.bat Posted: Fri May 11, 2012 10:21 am
Pro Beta Collector
Joined Sat Aug 19, 2006 8:13 am
Posts 506
Location Slovenia, Central Europe.
Favourite OS Windows 98 SE 4.10.2222B
The feature I like in System Commander is that in it, you can boot from another primary partition on the same hard disk (you need something like Partition Magic to make that, FDisk won't allow you to make more than one primary partition), thus you can keep your Windows 95 isolated from the MS-DOS+Windows 3.11. So I'd definitely suggest you use System Commander. However, if you want less work, then even Windows 95's dual boot function will do.
Post subject: Re: Change location of Autoexec.bat Posted: Sun May 13, 2012 8:33 am
Guru Beta Collector
Joined Sun Dec 30, 2007 8:12 am
Posts 615
You could use the feature of the config.sys SHELL command, to run autoexec.bat from a different directory. 4dos doses this quite nicely too. Works in 6 and 7.
What i found is that programs somehow expect autoexec to be in the root directory. I remember installing qemm not long after i moved autoexec off to a directory. And there it was, making edits to autoexec and config, and then rebooting. But the edit did not edit the real autoexec in a directory: it just quitely came to its usual halt, (instead of running its own proggie), and i laughed and laughed.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum
All views expressed in these forums are those of the author and do not necessarily represent the views of the BetaArchive site owner.