home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
High Voltage Shareware
/
high1.zip
/
high1
/
DIR13
/
BAT_FORM.ZIP
/
BAT_FORM.BTM
next >
Wrap
Text File
|
1993-09-01
|
4KB
|
118 lines
@echo off
rem
rem Clear the screen to bright cyan on black and put the initial
rem screen information on the screen
rem
@cls Bright Cyan on Black border @bla
@ScrPut 02 25 Bright Cyan on Black "
ScrPut 02 26 Bright Yellow on Black Batch
ScrPut 02 31 Bright Cyan on Black " Format Drive
ScrPut 02 46 Bright Blue on Black (
ScrPut 02 47 Bright Yellow on Black A
ScrPut 02 48 Cyan on Black /
ScrPut 02 49 Bright Yellow on Black B
ScrPut 02 50 Bright Blue on Black )
ScrPut 02 51 Bright White on Black :
ScrPut 04 31 Bright Cyan on Black Which Density Floppy
ScrPut 04 51 Bright White on Black :
ScrPut 06 25 Bright Yellow on Black 1
ScrPut 06 26 Bright Blue on Black )
ScrPut 06 28 Bright Cyan on Black 3½" Double Density
ScrPut 06 47 Bright Blue on Black (
ScrPut 06 49 Bright Magenta on Black 720
ScrPut 07 25 Bright Yellow on Black 2
ScrPut 07 26 Bright Blue on Black )
ScrPut 07 28 Bright Cyan on Black 3½" High Density
ScrPut 07 47 Bright Blue on Black (
ScrPut 07 48 Bright Magenta on Black 1.44
ScrPut 08 25 Bright Yellow on Black 3
ScrPut 08 26 Bright Blue on Black )
ScrPut 08 28 Bright Cyan on Black 3½" Extra Density
ScrPut 08 47 Bright Blue on Black (
ScrPut 08 48 Bright Magenta on Black 2.88
ScrPut 09 25 Bright Yellow on Black 4
ScrPut 09 26 Bright Blue on Black )
ScrPut 09 28 Bright Cyan on Black 5¼" Double Density
ScrPut 09 47 Bright Blue on Black (
ScrPut 09 49 Bright Magenta on Black 360
ScrPut 10 25 Bright Yellow on Black 5
ScrPut 10 26 Bright Blue on Black )
ScrPut 10 28 Bright Cyan on Black 5¼" High Density
ScrPut 10 47 Bright Blue on Black (
ScrPut 10 48 Bright Magenta on Black 1.2
ScrPut 06 52 White on Black k
ScrPut 06 53 Bright Blue on Black )
ScrPut 07 52 White on Black M
ScrPut 07 53 Bright Blue on Black )
ScrPut 08 52 White on Black M
ScrPut 08 53 Bright Blue on Black )
ScrPut 09 52 White on Black k
ScrPut 09 53 Bright Blue on Black )
ScrPut 10 52 White on Black M
ScrPut 10 53 Bright Blue on Black )
rem
rem Position the cursor, erase anything left after the prompts on
rem the lines, and get the keystrokes in response to the Drive and
rem Density options...
rem
:ReStart
Color Bright White on Black
Screen 02 53
@Inkey /k"AB[Esc]" %%Drive
If "%Drive" == "" @Goto The_End
Screen 04 53
Inkey /k"12345[Esc]" %%Size
If "%Size" == "" Goto The_End
rem
rem The actual "Format" Loop, set the color and clear the
rem formatting information display area of the screen before
rem beginning the actual formatting. The %? is the 4Dos variable
rem that holds the result code of the Format command. I test this
rem to see whether to loop back to the start of the batch file or
rem to continue with the formatting. It will detect a Control+C
rem interrupt, improper formatting options (3½" & 1.2M), and such...
rem
:@DiskFormat
Color Bright @Gre on Bla
Screen 13 00
Echo
Echo
Echo
Echo
Screen 13 00
If "%Size" == "1" FORMAT %Drive%: /U /F:720 /@AUTOTEST
If "%Size" == "2" FORMAT %Drive%: /U /F:1.44 /AUTOTEST
If "%Size" == "3" FORMAT %Drive%: /U /F:2.88 /AUTOTEST
If "%Size" == "4" FORMAT %Drive%: /U /F:360 /AUTOTEST
If "%Size" == "5" FORMAT %Drive%: /U /F:1.2 /AUTOTEST
If %? NE 0 Beep 600 4 450 1
If %? NE 0 Goto Restart
Color Bright Cyan on Bla
Beep 1000 2 900 1 1000 2 900 1 1000 2 900 1
ScrPut 11 00 Bright Magenta on Black Format Another
ScrPut 11 15 Bright Yellow on Black ?
Color Bright White on Bla
Screen 11 17
Inkey /k"@YN[Enter][Esc]" %%@DoIt
If "%DoIt" == "N" Goto The_End
If "%DoIt" == "" Goto The_End
echo A
GoTo DiskFormat
rem
rem The "Exit" area... Position the cursor below all the formatting
rem info and end the batch...
rem
:The_End
Screen 15 00
Quit