home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 8 Other
/
08-Other.zip
/
DOSBOO.ZIP
/
SYS.BAT
< prev
Wrap
DOS Batch File
|
1992-06-06
|
1KB
|
52 lines
@echo off
echo SYS
echo SYS will make an OS/2 formatted floppy bootable with DOS.
echo SYS expects DOS system files and boot sector in the current directory.
echo SYS requires that attrib.exe and debug.exe be in your path.
if "%1" == "A:" goto ok
if "%1" == "a:" goto ok
if "%1" == "B:" goto ok
if "%1" == "b:" goto ok
echo usage: SYS drive:, drive is A or B (include colon)
goto end
:ok
echo Please have a FORMATTED destination floppy in drive %1 or press ^C now.
pause
if not exist io.sys goto IBM
copy io.sys %1
copy msdos.sys %1
attrib +r +h +s %1io.sys
attrib +r +h +s %1msdos.sys
goto allok
:IBM
if not exist ibmbio.com goto badness
copy ibmbio.com %1
copy ibmdos.com %1
attrib +r +h +s %1ibmbio.com
attrib +r +h +s %1ibmdos.com
:allok
copy command.com %1
if "%1" == "A:" goto a
if "%1" == "a:" goto a
if "%1" == "B:" goto b
if "%1" == "b:" goto b
:a
echo l 300 0 0 1 > sys.tmp
echo m cs:30b 335 cs:10b >> sys.tmp
echo w 100 0 0 1 >> sys.tmp
goto c
:b
echo l 300 1 0 1 > sys.tmp
echo m cs:30b 335 cs:10b >> sys.tmp
echo w 100 1 0 1 >> sys.tmp
:c
echo q >> sys.tmp
debug boot.rec < sys.tmp > nul:
del sys.tmp
echo Your floppy in drive %1 should now be bootable with DOS.
goto end
:badness
echo There are no system files in this directory.
echo Please change to the directory that contains your DOS snapshot.
:end