| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Multiple Config.sys |
-=> Quoting William Geiger to William Geiger <=-
WG> Does anyone know of a better way of handling multiple config.sys files
WG> for OS/2? Right now I am using the Alt-F1 while OS/2 is loading then
I tried the Alt-F1 method but I ended up writing a REXX program to handle
multiple config.sys's for me. The only thing about my method is that you
run the REXX program, it copies the selected config.sys, then shutdown and
reboot, instead of selecting the config.sys during boot up.
The Alt-F1 method would copy the config.sys for me, but it wouldn't take
effect until I shutdown and rebooted again anyway... maybe due to error on
my part, but I my way works fine for me...
/* Configure boot */
'{at}Echo off';
CONFIG_DOS = """D:\Config.Dos Windows"""
CONFIG_MMOS2 = """D:\Config.Multi Media"""
CONFIG_NORMAL = """D:\Config.Normal"""
CONFIG_SYS = "D:\Config.Sys"
CMD = 'Copy '
call SysCurState Off;
call SysCls;
say '';
say '';
say '';
say '';
say '';
say '';
say '';
say '';
say ' Choose CONFIG.SYS to boot';
say '';
say '';
say ' 1. Dos/Windows 'CONFIG_DOS '';
say ' 2. Multi-Media 'CONFIG_MMOS2 '';
say ' 3. Normal 'CONFIG_NORMAL '';
key = SysGetKey(NoEcho);
select
when key == '1' then do
cmd = cmd||CONFIG_DOS;
end
when key == '2' then do
cmd = cmd||CONFIG_MMOS2;
end
when key == '3' then do
cmd = cmd||CONFIG_NORMAL;
end
otherwise
return 0;
end
say '';
cmd = cmd||' 'CONFIG_SYS;
say cmd;
cmd
say '';
say 'Shutdown and Reboot Now? y/n';
key = SysGetKey(NoEcho);
if key == 'y' | key == 'Y' | key == 13 then do
say '';
say 'Shutting down...';
'shutdown.exe';
end
There's kind of a bug here, pressing is supposed to default to a 'y'
response, but it doesn't work and I think it may be better this way.
Phil
Fido: 1:124/8014.1 | Internet: phil.crown{at}bluecafe.com
___ Blue Wave/OS2 v2.30
--- WILDMAIL!/WC v4.12
* Origin: The Blues Cafe (214) 638-1186 8 Nodes (1:124/8014.0)SEEN-BY: 50/99 78/0 270/101 620/243 711/401 409 410 413 430 808 809 934 955 SEEN-BY: 712/407 515 517 628 713/888 800/1 7877/2809 @PATH: 124/8014 8001 1 396/1 270/101 712/515 711/808 809 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.