Description:
    This batch file attempts to verify that the level F serial port diagnostic commands
    can be executed.
   
******************************************************************************************
    Clear the Expected Batch File Errors.
   ******************************************************************************************
    All Level '*' Command: Special Batch File Function - Clear Expected Errors
   
******************************************************************************************
    Enable error logging and clear the error log.
   ******************************************************************************************
    -/LE1                               Level L 'E' Command: Enable / Disable Logging
    -/LiFFFC                            Level L 'i' Command: Initialize Log File
   
******************************************************************************************
    Display the help information for the Level F commands.
   ******************************************************************************************
    -/CQF                               Level C 'Q' Command: Display ASCII Command Information
   
******************************************************************************************
    Change to Command Level F.
   ******************************************************************************************
    -/F                                 All Level '/' Command: Change Diagnostic Command Level
   
******************************************************************************************
    Test the processor and buffer memory access commands.
   ******************************************************************************************
    -D                                  'D' Command: Memory Block Display
    -P                                  'P' Command: Set Buffer Pattern
    -B                                  'B' Command: Buffer Display
    -C                                  'C' Command: Buffer Copy
    -V                                  'V' Command: Buffer Compare
   
******************************************************************************************
    Display the supported baud rates.
   ******************************************************************************************
    -b1                                 'b' Command: Set Baud Rate
   
******************************************************************************************
    Test the SATA Debug command by using it to display the SATA registers.
   
    (Note: This command is made up of several subcommands of which only one is being
    tested here.  This command is owned by Tony Priborsky and he is responsible for
    maintaining it.)
   ******************************************************************************************
    -z1                                 'z' Command: SATA Debug - Dump SATA Registers
   
******************************************************************************************
    Test the spin commands.
   ******************************************************************************************
    -Z                                  'Z' Command: Spin Down Drive
    -U                                  'U' Command: Spin Up Drive
   
******************************************************************************************
    Test the seek commands.  Set the Test Space to single track mode and perform the
    seek.  This will initialize the diagnostic current and target address for future
    commands that use them.
   ******************************************************************************************
    -A0                                 All Level 'A' Command: Set Test Space
    -s200,0,22                          's' Command: Seek to Physical Cylinder and Head
    -.                                  Online '.' Command: Display Active Status
   
******************************************************************************************
    Test the retry commands by displaying the current retry configuration.
   ******************************************************************************************
    -Y                                  'Y' Command: Set Retries
    -y                                  'y' Command: Set DERP Retry State
   
******************************************************************************************
    Test the Read System CHS command.  First use the Level 2 'S' command to seek to the
    first System Area logical track.
   
    Note: Since we are reading and writing on a track whose defect status is unknown, the
    Read command may generate a Read Failed error (DiagError 5003).
   ******************************************************************************************
    -/2S0,0,,,,1                        Level 2 'S' Command: Seek to Logical Cylinder and Head
    -.                                  Online '.' Command: Display Active Status
    -*A,5003,0,1                         All Level '*' Command: Special Batch File Function - Set Expected Error
    -/Fr0,1                             'r' Command: Read System CHS
    -.                                  Online '.' Command: Display Active Status
   
******************************************************************************************
    Display the Active Error Log and check if the Batch File failed.
   ******************************************************************************************
    -*B                                 All Level '*' Command: Special Batch File Function - Display Log
    -|                                  '|' Command: Batch File Terminator