home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Unsorted BBS Collection
/
thegreatunsorted.tar
/
thegreatunsorted
/
programming
/
misc_programming
/
battutor.l!h
/
_WHAT.BAT
< prev
next >
Wrap
DOS Batch File
|
1990-11-02
|
2KB
|
43 lines
echo off
Rem. _what.bat revised 19-aug-83 17:41
more <_what.rem
pause
:example
slash/ll/I'm going to count your physical diskette drives using WHAT FLOPPIES.
slash/l /Note that "legitimate" IBM hard disks won't be in this count, nor
slash/ /will virtual drives that are "patched" into DOS. You would
slash/ /use the WHAT DRIVES command to count diskette drives, hard disks,etc.
slash/l / Wait a moment ...
what floppies
if errorlevel 4 goto 4disks
if errorlevel 3 goto 3disks
if errorlevel 2 goto 2disks
if errorlevel 1 goto 1disks
slash/l/No floppies??? You're either patched or pulling my leg!
goto continue
:1disks
slash/1/One floppy. Hmm. Either one of the last of a dying breed,
slash/ /or perhaps there is a hard disk next door ...
goto continue
:2disks
slash/l/Two floppies are the mark of a mainstream user.
slash/l/Have you considered a RAM disk? Think about it ...
slash/l/(Don't type y/n. You're probably answering EVERYTHING
slash/ / y/n by now ! )
goto continue
:3disks
slash/l/Three floppies! Is one a RAM disk, or (gasp!) a winnie?
slash/l/(Don't type y/n. You're probably answering EVERYTHING
slash/ / y/n by now ! )
goto continue
:4disks
slash/l/Four floppies!! A heavy duty user, for sure. Or else
slash/l/you're just fooling with the switches ...
:continue
query/lll/ Want to run this example again (y/n) ?
if errorlevel 2 goto exit
if errorlevel 1 goto example
_find
:exit
slash/lll/ Bye bye