Q: bootcd, "set comspec=%ramd%\command.com"
- From: "Axel" <axop@xxxxxxx>
- Date: Mon, 9 Oct 2006 22:33:35 +0200
hallo,
habe eine bootcd erstellt, die im abschluß automatisch ausgeworfen werden
soll,
command.com in ramdisk kopiert und mit "set comspec" definiert,
aber wenn die cd ausgeworfen wird -> fehler.
hat jemand einen tip warum?
ansonsten funktioniert das menü.
folgende boote dateien werden verwendet:
CONFIG.SYS:
-------------------------------------------------------------------------
DEVICE=A:\DOS\himem.sys /testmem:off
DEVICE=A:\DOS\EMM386.EXE NOEMS HIGHSCAN
INSTALLhigh=\dos\MSCDEX.EXE /D:cdrom /L:I
DEVICEHIGH =\DOS\OAKCDROM.SYS /D:CDROM /L:GR
DEVICEHIGH /L:1 =\DOS\KEYBGR.SYS
INSTALLhigh=\dos\ctmouse.exe
DEVICEHIGH=\Net\Protman.dos /I:\Net\
DEVICEHIGH /L:3,5888 =\NET\PKT_DRV.DOS
files=10
dos=high, UMB
lastdrive=R
FCBS=4,0
stacks=9,256
rem SWITCHES=/F/N
[MENU]
MENUITEM=IV, Ghost 8.0 System wieder herstellen
MENUITEM=IS, Ghost 8.0 Image sichern
MENUITEM=GT, Ghost 8.0 Konsole
MENUITEM=PM, Partition Magic 8.0
MENUITEM=MC, Virenscanner McAfee
MENUITEM=FD, xfDisk -> reboot
MENUITEM=PC, PC Config (Diagnose)
MENUITEM=XT, XTGold
MENUITEM=WI, Windows ( XP sp2 o. 98 SE ) Installation
menudefault=IV,5
menucolor=10,0
[IS]
[IV]
[GT]
[PM]
[FD]
[MC]
[PC]
[XT]
[WI]
=================================================
AUTOEXEC.BAT:
-------------------------------------------------------------------------
@ECHO OFF
Prompt=$p$g
set SOURCEDISK=A:
set EXPAND=YES
set DIRCMD=/O:N
set TZ=met-1dst
set cdlw=I:
set ramd=R:
set lanpath=j:
set image=ghost
LH %SOURCEDisk%\dos\xmsdsk 3062 %ramd% /y >nul
copy %SOURCEDisk%\*.* %ramd%\ >nul
set comspec=%ramd%\command.com
%SOURCEDisk%\dos\xcopy \DOS %ramd%\dos\ /s >nul
%ramd%\dos\unzip \net\net.zip -d %ramd%\net >nul
path=%ramd%\DOS;%cdlw%\xtgold;%cdlw%\xfdisk;%cdlw%\fprot;%cdlw%\vgacopy
:_nictreiber
set pci0=
set pci1=
set pci2=
set pci3=
set pci4=
%ramd%\NET\pciscan %ramD%\NET\nic.txt
if "%pci0%" == "" goto :_abort
if "%pci1%" =="" goto :_pci0
echo.
echo Auswahl Netztwerkkarte :...
echo %pci0% %pci1% %pci2% %pci3% %pci4%
%ramd%\DOS\choix /c:12345 Bitte waehlen Sie den Treiber aus:
echo %errorlevel%
If errorlevel 5 goto :_pci4
If errorlevel 4 goto :_pci3
If errorlevel 3 goto :_pci2
If errorlevel 2 goto :_pci1
If errorlevel 1 goto :_pci0
:_pci0
%ramd%\DOS\Device.com %ramd%\Net\%pci0%.dos
set bind=%pci0%
goto :_netbind
:_pci1
%ramd%\DOS\Device.com %ramd%\Net\%pci1%.dos
set bind=%pci1%
goto :_netbind
:_pci2
%ramd%\DOS\Device.com %ramd%\Net\%pci2%.dos
set bind=%pci2%
goto :_netbind
:_pci3
%ramd%\DOS\Device.com %ramd%\Net\%pci3%.dos
set bind=%pci3%
goto :_netbind
:_pci4
%ramd%\DOS\Device.com %ramd%\Net\%pci4%.dos
set bind=%pci4%
goto :_netbind
:_netbind
%ramd%\NET\PROTMAN.EXE /%ramd%\net\e100b
%ramd%\DOS\netbind.com
If errorlevel 1 goto :%config%
cls
goto %config%
REM **********************************************************************
:IV
echo Ghost 8: System wird wieder hergestellt
copy %cdlw%\GHOST8\ghost.exe %ramd% >nul
%ramd%
\ghost.exe -rb -clone,mode=restore,src=@mc%image%,dst=1
goto :_end
REM **********************************************************************
:IS
echo Ghost8: System wird gesichert (clone)
copy %cdlw%\GHOST8\ghost.exe %ramd% >nul
%ramd%
\ghost.exe -rb -clone,mode=create,src=1,dst=@mc%image%
goto :_end
REM **********************************************************************
:GT
echo Ghost8
copy %cdlw%\GHOST8\ghost.exe %ramd% >nul
%ramd%
\ghost.exe
goto :_end
REM **********************************************************************
:PM
%cdlw%\PQMAGIC\pqmagic.exe
goto :_end
REM **********************************************************************
:FD
%cdlw%\xfdisk\xfdisk.exe
%ramd%\Dos\reboot
REM **********************************************************************
:XT
echo XTGold wird gestartet
%cdlw%
CD NTFSDOS
ntfspro.exe
cd\
cd xtgold
xtgold
goto :_end
REM **********************************************************************
:MC
echo Virenscanner McAfee wird gestartet
%cdlw%
CD NTFSDOS
ntfspro.exe
if errorlevel 1 goto :PC
%cdlw%\MCAFEE\scan /ad
goto :_end
REM **********************************************************************
:VC
%cdlw%\VGACOPY\VGACOPY
goto :_end
REM **********************************************************************
:PC
%cdlw%\
cd\
CD\PCConfig
config.exe
goto :_end
REM **********************************************************************
:WI
echo Windows Installation
%ramd%\DOS\choix /c:12 Bitte ausw"hlen: 1. Windows XP Sp2, 2. Windows 98se
echo %errorlevel%
If errorlevel 2 goto :W9
If errorlevel 1 goto :WX
REM ---------------------------------------------------------------------
:WX
echo Windows XP Sp2 Unattended-Setup wird gestartet
smartdrv
%cdlw%
cd\
cd WinXPSp2\i386
winnt
goto :end
rem ---------------------------------------------------------------------
:W9
echo Windows 98 SE Unattended-Setup wird gestartet
smartdrv
echo Setup Dateien werden kopiert
%ramd%\dos\xcopy %cdlw%\win98se c:\win98se\ /s >nul
C:\
CD win98se
setup /ie /im /is /iv /nr
goto :end
REM **********************************************************************
:_abort
echo.
echo Konnte leider die Netzwerkkarte nicht identifizieren!!
echo.
pause
goto %config%.
fow into "_end"
:_end
%ramd%\DOS\eject >nul
%ramd%\DOS\choix /N /T:j,3 bitte CD entfernen, System
startet in 3 sec. neu
set pci0=
set pci1=
set pci2=
set pci3=
set pci4=
%ramd%\DOS\reboot
:noHD
:_end
.
- Follow-Ups:
- Re: Q: bootcd, "set comspec=%ramd%\command.com"
- From: Manfred Alfaré
- Re: Q: bootcd, "set comspec=%ramd%\command.com"
- Prev by Date: Re: externe Festplatte 250 GB unter Windows 98 SE
- Next by Date: Re: externe Festplatte 250 GB unter Windows 98 SE
- Previous by thread: externe Festplatte 250 GB unter Windows 98 SE
- Next by thread: Re: Q: bootcd, "set comspec=%ramd%\command.com"
- Index(es):
Relevant Pages
|