Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hey I'm trying to make a .bat to auto install dos from cd.
I have a gateway 2000 cd v1.1 and a micron boot disk.
Downloaded the file dosbot29.exe (boot disk)
What I want the .bat to do.
1.automatic fdisk then reboot
2.skip fdisk auto format c:
3.copy dos files from cd to c:\dos
4.copy system files to c:\
5.install cd driver to c:\cdromI'm trying to copy how the micron boot disk installs.
Setup.bat
Create partition?
................[Y][n]
yes
fdisk<fdisk.scr
no
goto format c:
md c:\dos
set cddrive=d:
setcd.com
%cddrive%
cd dos
xcopy *.* c:\doscopy to c:
IO.SYS
MSDOS.SYS
COMMAND.COM
WINA20.386make files autoexec.bat config.sys
edit autoexec.bat
C:\DOS\SMARTDRV.exe /X
@ECHO OFF
PROMPT $p$g
PATH C:\DOS
SET TEMP=C:\DOSedit config.sys
DEVICE=C:\DOS\SETVER.exe
DEVICE=C:\DOS\HIMEM.SYS
DOS=HIGH
FILES=30goto Install cd driver
................[Y][N]
yes
@echo off
if not exist c:\cdrom\nul
md c:\cdrom
copy a:\cdrom\cdrom.sys c:\cdrom
copy \mscdex.exe c:\cdrommake file LOADCD.BAT
edit LOADCD.BAT
@echo off
\cdrom\mscdex /d:%cdrom%edit autoexec.bat
@call cdrom\loadcd.bat
edit config.sys
device=cdrom\cdrom.sys /d:cdrom_cd0
set cdrom=cdrom_cd0quit
no
quit

@ECHO OFF
CLS
ECHO 1. Install MS-DOS 6.22
ECHO 2. Quit
choice /C:12if errorlevel 2 goto quit
if errorlevel 1 goto install:Install
choice /C:YN Partition hard drive?if errorlevel 2 goto no
if errorlevel 1 goto yes:yes
fdisk<fdisk.scr:no
format c:
sys d: c:
copy WINA20.386 c:
md c:\dos
set cddrive=d:
setcd.com
%cddrive%
cd dos
xcopy *.* c:\dos
cd d:\
copy autoexec.txt c:
ren c:\autoexec.txt autoexec.bat
copy config.txt c:
ren c:\config.txt config.sys
if not exist c:\cdrom\nul md c:\cdrom
copy d:\cdrom\OAKCDROM.SYS c:\cdrom
copy mscdex.exe c:\cdrom
copy loadcd.txt c:\cdrom
ren c:\cdrom\loadcd.txt loadcd.bat
cls
@ECHO OFF
ECHO MS-DOS 6.22 is now installed, restart your computer.
:quit
exitI dont know how to make a file like autoexec.bat then add text to it from setup or how to make a .bat to check if the drive is partitioned and formatted like the micron boot disk.

Hi guys,
I need to send a .bat or .vbs file tru an email, and i need it to install in a folder on C: drive automaticly. Basicly u get the mail, , then clic on the file, , clic yes, and it auto instal in the start folder.
Can someone tell me how to do that, or where to get the info..thanks

![]() |
![]() |
![]() |
| Login or Register to Reply | |
| Login | Register |
| Ads by Google |