>Hi,
>Can anybody tell me how (or whther it can be done at all!) to set up
>windows to boot up in different configurations for, say, use on a
>network, or without the network drivers loaded? I have the DOS side
>of things under control, ie using a [menu] to log in different
>config.sys and autoexec.bat configurations but, of course, windows
>just goes ahead and loads the (memory-rsident and very debilitating)
>drivers anyway (I have tried loading win /n to disable network
>drivers-no luck). Can anyone help or point me to an FAQ or web page
>or something?
>Thanks in advance
=========================================================
There are probably several ways to do it, but one way would be to
write a batch file that inserts the proper win.ini, system.ini, and
progman.ini before booting Windows.
Create a directory to hold the ini files- I'll call it C:\INI_BANK
I'll assume you want 3 configuations. Save each configuation's ini
files with a different name in the C:\INI_BANK directory
eg: win1.ini, win2.ini, win3.in
system1.ini, system2.ini, system3.ini
progman1.ini, progman2.ini, progman3.ini
Then write a batch file to install each and save it in a directory in
your path. eg: for configuation 2 - name it win2.bat
cd\
cd windows
del win.ini
del system.ini
del progman.ini
cd\
cd ini_bank
copy win2.ini c:\windows\win.ini
copy system2.ini c:\windows\system.ini
copy progman2.ini c:\windows\progman.ini
win
Then when you enter WIN2, from a DOS prompt, the current ini files in
your Windows directory will be deleted, and the proper ini files will
be written to the Windows directory. Then Windows will be started.
If you wanted to make it fancier, you could use the CHOICE command for
your selection
PLEASE, PLEASE, PLEASE... INCLUDE MY MESSAGE WITH YOUR REPLY
(WHA?)
o
o
''~``
( o o )
+------------.oooO--(_)--Oooo.--------------+
Bernie
Bern...@erols.com
Baltimore .oooO
( ) Oooo.
+----------------------\ (----( )------------------------+
\_) ) /
(_/
>sv15...@student.uq.edu.au wrote:
>>Hi,
>>Can anybody tell me how (or whther it can be done at all!) to set up
>>windows to boot up in different configurations for, say, use on a
>>network, or without the network drivers loaded? I have the DOS side
>There are probably several ways to do it, but one way would be to
Also, something to consider is that while using windows under any
one configuration, changes to the ini files may occur. So when
you change to a different configuration, you want to save the
current configuration back to win1, win2 or whatever....
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Barry Burnett (Zilbandy)
Tucson, Arizona USA
z...@azstarnet.com
Windows 95!... from the same people who brought you EDLIN!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Ian Mackay
: >Hi,
Are your network drivers loaded from within Windows? I have similar
needs (network and non-network versions of both DOS and Windows
configurations) and deal with it all through the multiple configuration
scheme of DOS 6.x (which I assume is what you're referring to when you
mention using a [menu] to log in different DOS configurations). But
the network files are all loaded from within autoexec.bat (or from a
network *.bat file called by it). The only unusual thing that happens
is that when Windows is loaded in a non-network configuration, a
warning screen pops up telling me the network drivers aren't loaded
and asking if I want to continue.
----- Bob Evans
bev...@netcom.com
++++++++++++++++++++++++++++++++
I use a registered shareware program called CFGCNTL, along with
the CONFIG BOOT feature of DOS 6.22. Here is my configuration:
+++++++++++++++++++++++++++++++++++++++
CONFIG.SYS
[common]
buffers=3,0
files=30
dos=umb
break=on
stacks 0,0
dos=high
[menu]
menuitem=Home
menuitem=Work
menuitem=Mobile
menuitem=Nothing
menudefault=Home,15
[Mobile]
lastdrive=c
device=c:\util\qemmo\dosdata.sys
set loadhidata=C:\UTIL\QEMMO\LOADHI.RF
device=C:\UTIL\QEMMo\QEMM386.SYS FRAME=NONE RAM ROM X=C800-CDFF
I=B000-B7FF rf X=E000-FCFF
device=c:\util\qemmo\dos-up.sys @c:\util\qemmo\dos-up.dat
device=c:\util\qemmo\loadhi.sys /rf c:\windows\ifshlp.sys
shell=c:\util\qemmo\loadhi.com /rf c:\command.com /p /e:512
[Work]
lastdrive=e
device=c:\util\qemmo\dosdata.sys
set loadhidata=C:\UTIL\QEMMO\LOADHI.RF
device=c:\util\qemmo\qemm386.sys frame=none ram rom X=C800-CDFF
I=B000-B7FF rf X=E000-FCFF
device=c:\util\qemmo\dos-up.sys @c:\util\qemmo\dos-up.dat
device=c:\util\chin545\ch_ide.sys /D:MSCD003
device=c:\util\qemmo\loadhi.sys /rf c:\windows\ifshlp.sys
shell=c:\util\qemmo\loadhi.com /rf c:\command.com /p /e:600
[Home]
lastdrive=e
device=c:\util\qemmo\dosdata.sys
set loadhidata=C:\UTIL\QEMMO\LOADHI.RF
device=c:\util\qemmo\qemm386.sys frame=none ram rom X=C800-CDFF
I=B000-B7FF rf X=E000-FCFF
device=c:\util\qemmo\dos-up.sys @c:\util\qemmo\dos-up.dat
device=c:\util\qemmo\loadhi.sys /rf c:\util\chin545\ch_ide.sys
/D:MSCD003
device=c:\util\qemmo\loadhi.sys /rf c:\windows\ifshlp.sys
shell=c:\util\qemmo\loadhi.com /rf c:\command.com /p /e:512
[Nothing]
lastdrive=z
shell=c:\command.com /p /e:256
++++++++++++++++++++++++++++++++++++++++
AUTOEXEC.BAT
@echo off
set
PATH=C:\;C:\BAT;C:\WINDOWS;C:\DOS;C:\F;C:\PLUGIN;C:\ODAPI;D:\BC45\BIN
set MOUSE=C:\UTIL\BALLPT
set FULTEMP=C:\CSERVE\CCD2
set PCTCP=C:\UTIL\PCTCP\PCTCPODI.INI
set TMP=C:\TEMP
set TEMP=C:\TEMP
set TZ=CST6CDT
goto %config%
:Mobile
c:\util\qemmo\loadhi /rf c:\windows\smartdrv.exe a- b- 1024 128
/v
goto WINDOWS
:Work
c:\util\qemmo\loadhi /rf c:\avirus\mcafee\viruscan\vshield.exe
/ANYACCESS /ONLY A:
c:\util\qemmo\loadhi /rf c:\windows\smartdrv.exe a- b- c+ d+ e-
1024 128 /v
c:\util\qemmo\loadhi /rf c:\dos\mscdex /D:MSCD003 /M:20
c:\util\qemmo\loadhi /rf C:\util\LAN\lsl
c:\util\qemmo\loadhi /rf C:\util\LAN\token
c:\util\qemmo\loadhi /rf C:\util\LAN\ipxodi d
c:\util\qemmo\loadhi /rf C:\util\LAN\netx
c:\util\qemmo\loadhi /rf c:\UTIL\PCTCP\ODIPKT >nul:
C:\UTIL\QEMMO\LOADHI /RF C:\UTIL\PCTCP\TOKDRV >nul:
call c:\bat\hell.bat
goto WINDOWS
:Home
c:\util\qemmo\loadhi /rf c:\avirus\mcafee\viruscan\vshield.exe
/ANYACCESS /ONLY A:
c:\util\qemmo\loadhi /rf c:\windows\smartdrv.exe a- b- c+ d+ e-
1024 128 /v
c:\util\qemmo\loadhi /rf c:\dos\mscdex /D:MSCD003 /M:20
goto WINDOWS
:WINDOWS
mode con: rate=32 delay=1
VERIFY OFF
prompt $p$g
c:\bat\win
:Nothing
c:
cd\
mode con: rate=32 delay=1
VERIFY OFF
prompt $p$g
+++++++++++++++++++++++++++++++++
C:\BAT\WIN.BAT
@echo off
:: C:\BAT\WIN.BAT
mode con: rate=32 delay=1
c:
cd c:\windows
goto %config%
:: ====================M O B I L E===================================
:Mobile
call c:\bat\config.bat MOB
copy c:\winpro\home.dir c:\winpro\pw.dir
c:\windows\win /N
goto END
:: ====================W O R K - L O G O N===============================
:Work
call c:\bat\config.bat WOR
copy c:\winpro\work.dir c:\winpro\pw.dir
c:\windows\win
goto END
:: ====================H O M E=============================================
:Home
call c:\bat\config.bat HOM
copy c:\winpro\home.dir c:\winpro\pw.dir
c:\windows\win /N
goto END
:: ====================N O T H I N G=================================
:Nothing
echo .
echo ..... YOU ARE NOT ALLOWED TO USE WINDOWS ON A NOTHING SYSTEM
echo .
goto END
:: ==================C O M M O N S T U F F===========================
:END
c:\bat\safe
c:
cd\
+++++++++++++++++++++++++++++++++++
C:\BAT\CONFIG.BAT
@echo off
:: CONFIG.BAT
::
:: --- General Command File to invoke ALL of the command files to change
:: --- ALL of the *.INI files needed for WINDOWS.
cfgcntrl /Mi c:\bat\SYSTEM.%1% c:\windows\SYSTEM.INI /Q /C /W!
>nul
::del c:\windows\SYSTEM.BAK
::call ed c:\windows\system.ini
cfgcntrl /Mi c:\bat\WIN.%1% c:\windows\WIN.INI /Q /C /W! >nul
::del c:\windows\WIN.BAK
::call ed c:\windows\win.ini
cfgcntrl /Mi c:\bat\WPS.%1% c:\windows\WPS.INI /Q /C /W! >nul
::del c:\windows\WPS.BAK
::call ed c:\windows\wps.ini
cfgcntrl /Mi c:\bat\TRUMPWSK.%1% c:\internet\TRUMPWSK.INI /Q /C
/W! >nul
::del c:\internet\TRUMPWSK.BAK
::call ed c:\internet\trumpwsk.ini
cfgcntrl /Mi c:\bat\CIS.%1% c:\cserve\CIS.INI /Q /C /W! >nul
::del c:\cserve\CIS.BAK
::call ed c:\cserve\cis.ini
cfgcntrl /Mi c:\bat\WINCIM.%1% c:\cserve\wincim\WINCIM.INI /Q /C
/W! >nul
::del c:\cserve\wincim\WINCIM.BAK
::call ed c:\cserve\wincim\wincim.ini
cfgcntrl /Mi c:\bat\EUDORA.%1% c:\internet\eudora\EUDORA.INI /Q
/C /W! >nul
::del c:\internet\eudora\EUDORA.BAK
::call ed c:\internet\eudora\eudora.ini
++++++++++++++++++++++++++++++++++++++++
Sample SYSTEM.WOR
* c:\bat\SYSTEM.WOR
*
***** Command file for the CfgCntrl program to update SYSTEM.INI
for WORK.....
*
*[NULL-NULL]
*-LastModified=!
*+LastModified=WORK configuration.....
*
[386Enh]
-device=c:\util\pctcp\vpctcp.386
+device=c:\util\pctcp\vpctcp.386
-device=D:\BC45\BIN\WINDPMI.386
+device=D:\BC45\BIN\WINDPMI.386
-device=D:\BC45\BIN\TDDEBUG.386
+device=D:\BC45\BIN\TDDEBUG.386
*
[DISPLAY]
-SCREEN-SIZE=!
+SCREEN-SIZE=800X600
*
[Hurricane]
-SectorCacheDrives=!
+SectorCacheDrives=D
+++++++++++++++++++++++++++++++++
Where to find CFGCNTL
++++++++++++++++++++++++++++++
I personnally use a REGISTERED shareware program called CFGCNTRL
from Gary Tessler to change my various "INI" files prior to
starting
Windows. What I do is:
1. I have a NOTEBOOK.
2. I have DOS 6.xx on my Notebook run the CONFIG.SYS file and
do a 'menu' of the various boot configurations, such as
Mobile
Home
Work
WorkNoLan
etc.
3. Then, I have AUTOEXEC.BAT branch depending on the %config%
variable. In each separate section, I have the CFGCNTRL
program re-set the stuff in all of the INI files
appropriately.
4. Lastly, AUTOEXEC.BAT invokes WIN.COM to start Windows.
I change things like:
1. WIN.INI Printer
LOAD=
Printer Defaults (orientation)
Printer Defaults (duplex)
2. TRUMPWSK.INI (Internet) Phone Number to call
Modem Speed
3. SYSTEM.INI Video Driver
Network Driver (or not)
Video Resolution
4. CIS.INI (CompuServe) Phone Number to call
Also, I use WINBATCH (another registered shareware program) to
change
various INI files ***IF NEEDED*** once Windows has been booted.
For
example, I have multiple WinBatch 'programs' which:
1. Change my Internet Phone Number appropriately if the
'default'
one is busy.
2. Change my CompuServe Phone Number if it is busy.
3. Look at all of the changes made by CFGCNTRL. Used for
Debugging.
To find CFGCNTRL, send a message to Gary Tessler at
and ask him where the most current version is located. Tell him
I
called.
-----------------------------------------------------------------------
Charles A. Kulosa |---I know everything important there is to know....
cku...@cpiusa.com |---<???????>
Chicago, IL, USA |---I don't know that - It must not be important.