echo off
if %1x == x goto error
if %2x == x goto error
if %1 == r goto ok
if %3x == x goto error
:ok
SUPERK p2 s2400 d%1 t%2 f%3 %4 %5 %6 %7
goto end
:error
cls
echo SUPERK - (c) Copyright 1988 Crater Rim Software - All Rights Reserved
echo .
echo          MiniNet's External Protocol Driver for Batch
echo             transfers using single file protocols
echo .
echo Command Line
echo .
echo      SUPERK p2 s2400 d(direction) t(protocol)[y] f(filename) option1 option2
echo .
echo Call SUPER as    SUPER direction protocol filename option1 option2
echo                  where direction = s or r
echo                        protocol  = x,c,w,y,k,s  or  xb,cb,wb,yb,kb,sb
echo                        filename  = filename with ds  or  path with dr
echo                        options   = see SUPERK.DOC
echo .
echo Change the port and speed (p and s) to suit
echo .
echo Call   SUPERK @   to set and save defaults
:end
