Computing.Net > Forums > Windows 3.1 > Auto Dos 6.22 install from cd (.bat help)

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Auto Dos 6.22 install from cd (.bat help)

Reply to Message Icon

Name: dontdoit
Date: June 6, 2009 at 11:07:37 Pacific
OS: Dos 6.22 WFWG 3.11
CPU/Ram: 64
Subcategory: Software Problems
Comment:

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:\cdrom

I'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:\dos

copy to c:
IO.SYS
MSDOS.SYS
COMMAND.COM
WINA20.386

make files autoexec.bat config.sys

edit autoexec.bat

C:\DOS\SMARTDRV.exe /X
@ECHO OFF
PROMPT $p$g
PATH C:\DOS
SET TEMP=C:\DOS

edit config.sys

DEVICE=C:\DOS\SETVER.exe
DEVICE=C:\DOS\HIMEM.SYS
DOS=HIGH
FILES=30

goto 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:\cdrom

make 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_cd0

quit

no

quit



Sponsored Link
Ads by Google

Response Number 1
Name: dontdoit
Date: June 7, 2009 at 20:54:58 Pacific
Reply:

@ECHO OFF
CLS
ECHO 1. Install MS-DOS 6.22
ECHO 2. Quit
choice /C:12

if 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
exit

I 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.


0

Response Number 2
Name: kane666
Date: September 8, 2009 at 22:14:06 Pacific
Reply:

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


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More






Use following form to reply to current message:

Login or Register to Reply
LoginRegister


Sponsored links

Ads by Google


Results for: Auto Dos 6.22 install from cd (.bat help)

dos 6.22 instalation www.computing.net/answers/windows-31/dos-622-instalation/11820.html

Dos 6.22 Installation www.computing.net/answers/windows-31/dos-622-installation/5826.html

bootable CD for dos 6.22, www.computing.net/answers/windows-31/bootable-cd-for-dos-622/11454.html