home *** CD-ROM | disk | FTP | other *** search
/ Share Gallery 1 / share_gal_1.zip / share_gal_1 / UT / UT214.ZIP / SEBFU40.LZH / DSKRDY.DOC < prev    next >
Text File  |  1991-09-27  |  6KB  |  180 lines

  1.  
  2.                            D S K R D Y     Ver. 4.0
  3.  
  4.  
  5.                     (C)1989,1990,1991  Scanlon Enterprises
  6.  
  7.  
  8.  
  9.  
  10.  
  11.        DSKRDY is a small utility to check if a floppy (A or B) drive is 
  12.        ready, if a disk is inserted, or if the disk is formatted.
  13.  
  14.  
  15.        Syntax : DSKRDY d:
  16.  
  17.  
  18.        Where : 'd:' is either drive A or B, and the colon is optional
  19.  
  20.  
  21.  
  22.        Defaults : There are none, and A or B must be specified
  23.  
  24.  
  25.        ERRORLEVELS: 255 (0FF) = Program Problem (call Author)
  26.                       4       = Drive NOT specified
  27.                       3       = Invalid drive specified
  28.                       2       = Drive NOT ready (no disk)
  29.                       1       = Disk already formatted
  30.                       0       = Disk ready to format
  31.  
  32.  
  33.  
  34.  
  35.  
  36.        EXAMPLES:
  37.  
  38.                ECHO OFF
  39.                CLS
  40.                DSKRDY A
  41.                FOR %%F IN (5 4 3 2 1) DO IF ERRORLEVEL %%F GOTO STAT%%F
  42.                ECHO Disk Ready to Format
  43.                GOTO XIT
  44.                :STAT1
  45.                ECHO Disk is formatted
  46.                GOTO XIT
  47.                :STAT2
  48.                ECHO Drive Not ready / no disk installed
  49.                GOTO XIT
  50.                :STAT3
  51.                ECHO Invalid drive specified
  52.                GOTO XIT
  53.                :STAT4
  54.                ECHO Drive Must be specified
  55.                GOTO XIT
  56.                :STAT5
  57.                ECHO Program Problem, Call Author
  58.                :XIT
  59.  
  60.  
  61.  
  62.  
  63.       Page 1 of 3
  64.  
  65.                            D S K R D Y     Ver. 4.0
  66.  
  67.  
  68.                     (C)1989,1990,1991  Scanlon Enterprises
  69.  
  70.  
  71.  
  72.        The following example is a much more useful function. This batch 
  73.        file will use your DOS FORMAT program to cycle both drive A and B 
  74.        to format continously, untill an error is detected.
  75.  
  76.                ECHO OFF
  77.                CLS
  78.                ECHO DSKFMT Formatting Utility .......
  79.                ECHO Insert a disk into Drives A and B
  80.                PAUSE
  81.                :LPA
  82.                DSKRDY A
  83.                IF ERRORLEVEL 2 GOTO DRVFAIL
  84.                IF NOT ERRORLEVEL 1 GOTO FMTA
  85.                ECHO Disk in drive A is Formatted
  86.                ECHO Press ^C to abort format, or
  87.                PAUSE
  88.                :FMTA
  89.                FORMAT A:<C:\BAT\ANS
  90.                :LPB
  91.                ECHO Disk in Drive A formatted, Formatting
  92.                ECHO disk in drive B
  93.                DSKRDY B
  94.                IF ERRORLEVEL 2 GOTO DRVFAIL2
  95.                IF NOT ERRORLEVEL 1 GOTO FMTB
  96.                ECHO Disk in drive B is Formatted
  97.                ECHO Press ^C to abort format, or
  98.                PAUSE
  99.                :FMTB
  100.                FORMAT B:<C:\BAT\ANS
  101.                ECHO Disk in Drive B Formatted, Formatting
  102.                ECHO disk in drive A
  103.                GOTO LPA
  104.                :DRVFAIL
  105.                ECHO Drive A is NOT ready, or there is no
  106.                ECHO disk installed, press ^C to abort, or
  107.                PAUSE
  108.                GOTO LPA
  109.                :DRVFAIL2
  110.                ECHO Drive B is NOT ready, or there is no
  111.                ECHO disk installed, press ^C to abort, or
  112.                PAUSE
  113.                GOTO LPB
  114.  
  115.        This batch file will run continously, untill the user presses the 
  116.        ^C key sequence during one of the PAUSE commands. The PAUSE 
  117.        command halts the batch file untill a key is pressed, or if ^C is 
  118.        pressed, the batch file terminates.
  119.  
  120.        The above batch file is included as a sample batch file, called 
  121.        FMTAB.BAT .
  122.  
  123.        For additional usage and information on using these utilities see 
  124.        the file SEBFU.DOC or BATUT.DOC.
  125.  
  126.       Page 2 of 3
  127.  
  128.                             D S K R D Y    Ver. 4.0
  129.  
  130.  
  131.                     (C)1989,1990,1991  Scanlon Enterprises
  132.  
  133.  
  134.  
  135.                              O R D E R     F O R M
  136.  
  137.  
  138.  
  139.  
  140.        DSKRDY registration ..................................... $2.00
  141.  
  142.  
  143.  
  144.  
  145.        What you get :
  146.  
  147.        Unlimited usage of DSKRDY, and phone or write in support. You 
  148.        will also be placed on our mailing list for future updates and 
  149.        new products.
  150.  
  151.        DSKRDY PLUS with additional capabilities:
  152.                
  153.                User may specify any valid disk drive (A-Z)
  154.                OPTION to select testing for the write protect tab.
  155.                OPTION to select returning media type, such as 3.5 inch
  156.                       or 5 inch, high density, etc...
  157.                Will exit with an errorlevel indicating the selected 
  158.                     drive is a Hard drive, if the specified drive is.
  159.                MORE....
  160.  
  161.  
  162.        We are offering this utility seperate from SEBFU as a favor to 
  163.        users who do NOT wish to use many of the SEBFU utilities.
  164.  
  165.        This utility is automatically registered to you when you register 
  166.        SEBFU as a product (see REG.DOC). Registering SEBFU as a product 
  167.        is a better bargin, as each utility will cost less than $ .25 
  168.        each.
  169.  
  170.  
  171.        Vendors:
  172.  
  173.        You may distribute DSKRDY seperately, provided this document is 
  174.        distributed as well. Any reasonable fee may be charged.
  175.  
  176.  
  177.        Send your order to : SCANLON ENTERPRISES
  178.                             38354 17TH ST E.
  179.                             PALMDALE, CA 93550
  180.