BetaArchive Logo
Navigation Home Database Screenshots Gallery Image Uploader Server Info FTP Servers Wiki Forum RSS Feed Rules Please Donate
UP: 11d, 4h, 33m | CPU: 10% | MEM: 5292MB of 11447MB used
{The community for beta collectors}

Post new topic Reply to topic  [ 7 posts ] 
Author Message
 PostPost subject: Undocumented Windows 95        Posted: Fri Aug 21, 2015 12:14 pm 
Reply with quote
Donator
User avatar
Offline

Joined
Sun Dec 30, 2007 8:12 am

Posts
1211

Location
Brisbane, Queensland

Favourite OS
OS/2 Wrp 3.0
I've been playing with Undocumented Win9x config.sys commands.

  • DOS=SINGLE
  • LOGO n

DOS=SINGLE loads windows normally, including win.com. But when this comes, instead of loading the GUI, it just gives a prompt 'You know you are in DOS, To load windows normally, press "enter", to continue, press "escape".

LOGO 1 tells windows to load the logo even in DOS mode. Normally, booting into DOS does not do this.

You can get around the Win.com prompt, by renaming win.com to win.exe, and putting something harmless at win.com, such as drives.com. So it boots normally, and gives a harmless message listing available drives.

This is a generic install of Windows 95 into C:\FENSTER. The DOS junk has been copied into MSDOS7. We've got general utilities in C:\USE and Norton Commander 5.51 is in NC55, and NCW in NC201,



This is the resulting CONFIG.SYS
Code:
[menu]
menuitem Win95,Windows
menuitem MSDOS7,MSDOS7

[Win95]

[msdos7]
dos=high,noauto,single
device=c:\msdos7\himem.sys
files 60
logo 1
shell c:\msdos7\command.com c:\msdos7 /p
devicehigh=c:\msdos7\ramdrive.sys 1024 /e

[common]
DEVICE=c:\FENSTER\VMADD\CDROM.SYS /D:MSCD0000
LASTDRIVE=Z


AUTOEXEC.BAT Note because we don't use WIN.COM at the end of the batch, we load it in the batch as WIN.EXE

Code:
@echo off
echo %config%
goto %config%
c:\use\doskey -i

:win95
cd c:\fenster
c:\FENSTER\VMADD\SYSINI.EXE
c:\fenster\win.exe
goto :eof

:msdos7
c:\use\keyb uk
path c:\msdos7;c:\use;c:\nc55;%path%
vmmouse.com
mscdex /d:mscd0000
set vdisk=C:
c:\use\setvdisk
echo The ramdrive is in %vdisk%
goto :eof

:eof


setvdisk.com is a utility that finds a drive with ramdrive, and modifies the environment variable vdisk=c: to vdisk= the drive it finds. It does this by looking for vdisk=?? and pokes the variable into ??.


Top  Profile  WWW
 PostPost subject: Re: Undocumented Windows 95        Posted: Fri Aug 21, 2015 3:23 pm 
Reply with quote
Donator
User avatar
Offline

Joined
Fri May 14, 2010 1:29 pm

Posts
883

Location
Southern Germany

Favourite OS
IRIX 5.3
Offtopic Comment
Did you really call your "Windows" directory "FENSTER"? :-D

_________________
I upload stuff to archive.org from time to time. See here for everything that doesn't fit BA


Top  Profile
 PostPost subject: Re: Undocumented Windows 95        Posted: Sat Aug 22, 2015 12:34 am 
Reply with quote
Donator
User avatar
Offline

Joined
Sun Dec 30, 2007 8:12 am

Posts
1211

Location
Brisbane, Queensland

Favourite OS
OS/2 Wrp 3.0
It has a variety of names: Fenster is german for Winndows, but English has 'defenestrate' for a Czech form of removing politicians by tossing them out the window. My main windows is in H:\FENSTER

Another name is LEGACY, so you can talk about Windows software as 'legacy software'. It was used of Windows 95 on the 486.


Top  Profile  WWW
 PostPost subject: Re: Undocumented Windows 95        Posted: Sat Aug 22, 2015 5:20 am 
Reply with quote
Donator
Offline

Joined
Sat Sep 09, 2006 6:43 am

Posts
789

Favourite OS
Win10/Debian Linux
that's really neat. Does this get you into a 32-bit dos session or just a command prompt?

_________________
Need disks scanned in the USA? I have a Kryoflux, and am willing to help get your disks archived! I also offer xbox and xbox 360 repair and modding services. PM me for details!


Top  Profile  WWW
 PostPost subject: Re: Undocumented Windows 95        Posted: Sat Aug 22, 2015 9:56 am 
Reply with quote
Donator
User avatar
Offline

Joined
Sun Dec 30, 2007 8:12 am

Posts
1211

Location
Brisbane, Queensland

Favourite OS
OS/2 Wrp 3.0
What ye get with DOS=SINGLE is the same as 'reboot to dos' mode or shortcut. It still loads windows, but when it sees win.com., it gives 'did you know you are in MS-DOS mode, press enter to reboot or escape to continue. Here we are in the Win95 directory, and i type 'win'. This is drives recopied.

Code:
C:\FENSTER>win                                                                 
  Valid drives are A: B: C: D: E: F: G: L: P:

C:\FENSTER>win.exe                                                             

You are currently running in MS-DOS mode. Do you want to                       
return to normal mode, to run Windows applications again [Enter=Y,Esc=N]?N     

You are still running in MS-DOS mode. To return to normal               
mode, exit the application you are running, or type WIN again.


Typing win.exe (renamed win.com) gives you the prompt as above. It is little wonder i did this extra hack, since Win95 runs %winbootdir%\win.com after DOS has loaded.

This is the DOS environment.
Code:
CONFIG=MSDOS7   ;  set by config.sys
TMP=C:\FENSTER\TEMP    ;  set by IO.SYS as %winbootdir%\temp
TEMP=C:\FENSTER\TEMP  ;  set by IO.SYS as %winbootdir%\temp
PROMPT=$p$g    ; set by IO.SYS as $P$G
winbootdir=C:\FENSTER    ;  From \MSDOS.SYS [Paths] Winbootdir=
COMSPEC=C:\MSDOS7\COMMAND.COM   \ Set by SHELL=
PATH=C:\MSDOS7;C:\USE;C:\NC55;C:\FENSTER;C:\FENSTER\COMMAND  C:\fenster ... is embedded path
VDISK=F:    ;  set by SETVDISK.COM, overwriting VDISK=C:
CDROM=G:    ;  set by http://www.robvanderwoude.com/amb_cdrom.php
CMDLINE=win.exe    ;  This is the win loader WIN.COM.                         


CONFIG comes from config.sys, COMSPEC from command.com, the PATH is C:\....N55;%PATH%, VDISK and CDROM are set by some sub 512byte utilities, that actually set the setting.

Note winbootdir is there, but not windir. Path is set by IO to %winbootdir%;%winbootdir%\COMMAND.


Top  Profile  WWW
 PostPost subject: Re: Undocumented Windows 95        Posted: Sat Aug 22, 2015 12:41 pm 
Reply with quote
Donator
User avatar
Offline

Joined
Sun Dec 30, 2007 8:12 am

Posts
1211

Location
Brisbane, Queensland

Favourite OS
OS/2 Wrp 3.0
So let's be clear about the different ways of loading DOS from Windows.

1. Bootgui=0 (MSDOS.SYS) or from the IO.SYS menu (Normal, logged, etc)
2. DOS=SINGLE in config.sys
3. From 'reboot into DOS mode'
4. From a desktop shortcut.
5. Winstart (ie a command.com before windows is loaded).

You can start Windows from 1. Exiting from 5 loads windows.
4 creates a config.sys that starts DOS=SINGLE and ends with WIN /WX


Top  Profile  WWW
 PostPost subject: Re: Undocumented Windows 95        Posted: Mon Aug 24, 2015 10:17 am 
Reply with quote
Donator
User avatar
Offline

Joined
Sun Dec 30, 2007 8:12 am

Posts
1211

Location
Brisbane, Queensland

Favourite OS
OS/2 Wrp 3.0
The main problem in running DOS=SINGLE, rather than BootGUI=0, and loading win.com as required, is that the latter choice gives you room to load windows anyway, and that it gives you more memory. Running DOS=SINGLE and then specifying a shell is equivalent to starting command.com inside a shell program: you get command.com, win.com, and then another command.com loaded into memory. Even if win.com is just drives.com renamed!

So if you want a windows 95 / DOS session as separate boot menus, using DOS=SINGLE is best avoided, and use BootGUI=0 and run LOGO=1 in config.sys gives far better options.


Top  Profile  WWW
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 




Who is online

Users browsing this forum: No registered users and 2 guests


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

Search for:
Jump to:  

All views expressed in these forums are those of the author and do not necessarily represent the views of the BetaArchive site owner.

Powered by phpBB® Forum Software © phpBB Group

Copyright © 2006-2020

 

Sitemap | XML | RSS