|
-
August 31st, 2003, 05:54 AM
#1
Registered User
DOS Config.sys/Autoexec.bat Menu
Good day, highly active DOS forum (heh). I was going to make a boot CD (based on an image from a disk) and include a menu to go to either "GHOST" where ghost loads for imaging, "INSTALL" where windows setup attempts to run from the same cd (but a different drive letter of course) and.... well i think thats it... but anyway thats the first problem, i wrote it all but realised after testing that its been too long since i did it last and it didnt work as expected.... The other problem is I need the batch to "guess" what the cdrom drive will be so it can run the windows setup. Any help available? I'll paste what i have so far when i get the chance.
-
August 31st, 2003, 07:07 AM
#2
Senior Member
mornin,
well when I want to do something like this, i just rip apart Microsoft's 98 Boot Autoexec/config.sys and remove / all what i need 
works a charm
-
September 2nd, 2003, 09:31 AM
#3
Registered User
well this might help this is my Ghost bootable disk (with menus and options)
First off make a dos bootdisk, I suggest you goto www.bootdisk.com and get the winodws 98 boot disk from them then take out waht oyu dont need. anywho this is for the floppy disk
Autoexec.bat
------------
@ECHO OFF
path=G:\netpro;G:\net3com;G:\pwl;G:\;G:\util
A:\MSCDEX.EXE /D:MSCD000 /L:g
IF "%CONFIG%"=="Pro100" G:\pro100.bat
IF "%CONFIG%"=="3Com" G:\3com.bat
IF "%CONFIG%"=="Pro100old" G:\pro100ol.bat
IF "%CONFIG%"=="3Comold" G:\3comold.bat
IF "%CONFIG%"=="Pro100usb" G:\pro100u.bat
IF "%CONFIG%"=="3Comusb" G:\3comusb.bat
IF "%CONFIG%"=="nc3com" G:\nc3com.bat
IF "%CONFIG%"=="ncpro100" G:\ncpro100.bat
IF "%CONFIG%"=="vscan" G:\av.bat
Config.Sys
----------
[Menu]
MenuItem=Pro100, Ghost Disk Intel Pro100
MenuItem=3Com, Ghost Disk 3Com
SubMenu=old, Old Ghost Boot Disks...
MenuItem=Pro100usb, Pro100 with USB Support
MenuItem=3Comusb, 3Com with USB Support
MenuItem=ncpro100, Norton Commander with Pro100 Drivers and USB
MenuItem=nc3com, Norton Commander with 3Com Drivers and USB
MenuItem=vscan, McAfee Dos Vrius Scanner
MenuItem=none, Boot into DOS
MenuColor=7,1
MenuDefault=Pro100,20
[Common]
DEVICE=A:\OAKCDROM.SYS /D:MSCD000
files=30
device=A:\ifshlp.sys
lastdrive=z
DEVICE=A:\HIMEM.SYS
DEVICE=A:\EMM386.EXE NOEMS
DOS=HIGH,UMB
[old]
MenuItem=Pro100old, Ghost Disk Intel Pro100 (OLD)
MenuItem=3Comold, Ghost Disk 3Com (OLD)
MenuColor=7,1
MenuDefault=Pro100old,20
[Pro100]
[3Com]
[Pro100old]
[3Comold]
[Pro100usb]
[3Comusb]
[ncpro100]
[nc3com]
[vscan]
[none]
================
Basicly what it will do is when you boot off the floppy it will show a menu for you to select. after you ahve selected your choice the batch script will mount the cdrom on the G: drive this is where all the other files will be.
example:
("IF "%CONFIG%"=="Pro100" G:\pro100.bat")
then I just have it load other patch scripts, kinda like other autoexec.bat files, lets look at pro100.bat
=================
@echo off
G:\netpro\net initialize
G:\netpro\nwlink
G:\netpro\net start
echo Drive V: \\share1\public$
net use v: \\share1\public$
echo Drive X: \\share2\images$
net use x: \\share2\images$
echo Drive Z: \\share3\programs$
net use z: \\share3\programs$
echo.
echo Setup Mouse Driver for PS/2
Mouse
cd x:
ghost
======================
Last edited by +Daemon+; September 2nd, 2003 at 09:35 AM.
-
September 3rd, 2003, 02:31 AM
#4
Registered User
Thanks Daemon, you may have just solved my problem! I'll post back when i've tried it.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|
Bookmarks