  /************************************************************************
  *  MODEX.C                                            by Fred Perkins   *
  *  Copyright (C) 1992 DataStorm Technologies, Inc.                      *
  *  All rights reserved.                                                 *
  *                                                                       *
  *  This program overcomes some of the limitations of the DOS mode       *
  *  command. It will accept any baud rate from 4 to 115K bps.  Switches  *
  *  are separated by spaces.  Typing "MODEX COMn" will search for ports, *
  *  update the equipment list, and the BIOS Data Area with the proper    *
  *  information, then report the current settings.  To set the port to   *
  *  new settings, the syntax is similar to the "MODE" command.           *
  *                                                                       *
  *  Command line example:  modex 38400 n 8 1
  *                                                                       *
  *  This source code is supplied to help suppliment some Aspect scripts, *
  *  and to give the user more control of their serial ports.  DataStorm  *
  *  makes no warranty of any kind, express or implied, including without *
  *  limitation, any warranties of mechantability and/or fitness for a    *
  *  particular purpose.  Use of this program is at your own risk.        *
  ************************************************************************/
