if exist pcbstuff.kbd del pcbstuff.kbd >NUL
l:\mailfile\receive l:\mailfile\flatfile.dat 
if errorlevel 4 goto notfound
if errorlevel 2 goto args
if errorlevel 1 goto pcboard
  if exist pcbdoor.txt del pcbdoor.txt>NUL
  goto end
:pcboard
  echo Could not open PCBOARD.SYS!>pcbdoor.txt
  goto end
:args
  echo Not enough arguments!>pcbdoor.txt
  goto end
:notfound
  echo File not found!>pcbdoor.txt
:end
l:\pcb\board
