Discussion Locked

Custom Boot CD

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I'm making a bootable CD-rom with different programs on, F-Prot, Norton, etc.. I was wondering if anyone out there knew how to make a custom boot menu so the programs would be executable from the menu. I know it can be done I've seen it just don't know how any ideas let me know.

2 replies

by chris910

*****************config.sys*******************
[MENU]
MENUITEM=NE2000, This machine has NE2000 NIC Card (default)
MENUITEM=3COM, This machine has 3Com Etherlink XL PCI 3C900B NIC Card
MENUITEM=ATI2500, This Machine has a ATI 2500-TX NIC Card
MENUITEM=E100B, This Machine has a Intel 10/100 PRO+ NIC Card
MENUCOLOR=15,1
MENUDEFAULT=NE2000, 15
[NE2000]
[3COM]
[ATI2500]
[E100B]
[COMMON]
DEVICE=A:\DOS\HIMEM.SYS /TESTMEM:OFF
DEVICE=A:\DOS\ANSI.SYS
DEVICE=A:\DOS\SETVER.EXE
DOS=HIGH
FILES=40
LASTDRIVE = Z

****************** autoexec.bat************
@ECHO OFF
PROMPT $p$g
PATH=A:;A:\DOS
Rem The following line sets DOS colors to white on blue
ECHO 
CLS
GOTO %CONFIG%

:NE2000
CD CLIENT32
STARTNET.BAT
GOTO :END

:3COM
CD CLIENT32
3COM.BAT
GOTO :END

:ATI2500
CD CLIENT32
ATI2500.BAT
GOTO :END

:E100B
CD CLIENT32
E100B.BAT
GOTO :END

:END

****************** startnet.bat *****************
SET NWLANGUAGE=English
A:\CLIENT32\NIOS.EXE -w
A:\CLIENT32\LSL.COM
A:\CLIENT32\N16ODI.COM
A:\CLIENT32\NESL.COM
A:\CLIENT32\NE2000.COM
LOAD A:\CLIENT32\LSLC32.NLM
LOAD A:\CLIENT32\PC32MLID.LAN
LOAD A:\CLIENT32\IPX.NLM
LOAD A:\CLIENT32\CLIENT32.NLM
F:

by chris910

Choice.exe and Strings.exe are shareware created by one of the guys at ZDNet.

This file speeded up some network changes to a network using static IP addresses.

on a bootable CD you will want to substitute %cdrom% for the drive letter.
***********************************
@echo off

:START
set hostname=
set domain=LMUSD.ORG
set searchlist=LMUSD.ORG,lUCIAMAR.K12.CA.US
Set NameServer=xxx.xxx.253.246,xxx.xxx.95.252
Set IPAddress=
Set IPMask=255.255.0.0
Set DefaultGateway=
set S=

:PromptForHostName
A:\STRINGS hostname = ASK Please Enter The Host Name for this station -?,15
ECHO.
IF @%hostname%==@ GOTO PromptForHostName

CLS
Type a:\ts.txt
a:\CHOICE would you like to configure IP addresses?
if errorlevel 1 goto EstablishFile

:EstablishIPLocation
Set S=1
Set num=
a:\CHOICE /C012a Determine the location of the IP address
ECHO.
IF errorlevel 1 set num=0
IF errorlevel 2 set num=1
IF errorlevel 3 set num=2
IF errorlevel 4 set S=
IF @%num%==@ GOTO EstablishIPLocation
IF @%S%==@ GOTO EstablishFile

:PromptForIP
A:\STRINGS IPAddress = ASK Please Enter The IP Address For This Station -?, 16
ECHO.
IF @%IPAddress%==@ GOTO PromptForIP

:PromptForGateway
A:\STRINGS DefaultGateway = ASK Please Enter The Gateway Address For This Station -?, 16
ECHO.
IF @%DefaultGateway%==@ GOTO PromptForGateway
ECHO.
ECHO.
ECHO.

:EstablishFile
@if exist a:\lmusd.reg del a:\lmusd.reg

:CreateFile
Echo The file LMUSD.REG is being created now
ECHO REGEDIT4 >A:\lmusd.reg
ECHO. >>A:\lmusd.reg
ECHO [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\VxD\MSTCP] >>>A:\lmusd.reg
ECHO "HostName"="%hostname%" >>>>A:\lmusd.reg
ECHO "Domain"="%domain%" >>>>>A:\lmusd.reg
ECHO "SearchList"="%searchlist%">>>>>>A:\lmusd.reg
ECHO "NameServer"="%NameServer%">>>>>>>A:\lmusd.reg
ECHO. >>>>>>>>A:\lmusd.reg
ECHO [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\VxD\VNETSUP]>>>>>>>>>A:\lmusd.reg
ECHO "ComputerName"="%hostname%">>>>>>>>>>A:\lmusd.reg
REM The Stations "Workgroup" could be inserted here
ECHO. >>>>>>>>>>>A:\lmusd.reg
ECHO [HKEY_LOCAL_MACHINE\System\CurrentControlSet\control\ComputerName\ComputerName]>>>>>>>>>>>>A:\lmusd.reg
ECHO "ComputerName"="%hostname%">>>>>>>>>>>>>A:\lmusd.reg

IF @%S%==@ GOTO DisplayCreatedFile

ECHO.>>>>>>>>>>>>>>A:\lmusd>>>>>>>>>>>>>>A:\lmusd.reg
@IF @%num%==@0 ECHO [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Class\NetTrans\0000]>>>>>>>>>>>>>>>A:\lmusd.reg
@IF @%num%==@1 ECHO [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Class\NetTrans\0001]>>>>>>>>>>>>>>>A:\lmusd.reg
@IF @%num%==@2 ECHO [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Class\NetTrans\0002]>>>>>>>>>>>>>>>A:\lmusd.reg
ECHO "IPAddress"="%IPAddress%">>>>>>>>>>>>>>>>A:\lmusd.reg
ECHO "IPMask"="%IPMask%">>>>>>>>>>>>>>>>>A:\lmusd.reg
ECHO "DefaultGateway"="%DefaultGateway%">>>>>>>>>>>>>>>>>>A:\lmusd.reg

:DisplayCreatedFile
cls
type LMUSD.reg
ECHO.
ECHO.
ECHO.
ECHO "You may now run A:lmusd.reg"

This discussion is closed to new replies.