;sample RUNFD.BAT/ IMRUN.BAT command structure for automatic Nodelist update
;using MERGENL
@echo off
cls
c:
set fd=c:\fd
cd \fd
cls

:START
  c:
  cd \fd
  fd 
  IF ERRORLEVEL 255 goto aftermail  
  IF ERRORLEVEL 1 goto end
  IF ERRORLEVEL 0 goto end
  goto start

:aftermail
  cls
  echo ath1 > com2                                ;specify COMPort
  if exist c:\fd\files\nodediff.a* goto nodediff  ;specify INCOMING dir
  cd\                                             ;call your 
  goto start                                      ;tosser/scanner
                                                  ;here and any
                                                  ;other "aftermail"
                                                  ;program (AllFix 
:nodediff                                         ;etc.)
  echo ath1 > com2                                ;specify COMPort  
  cd \fd\nodelist                                 ;your nodelist dir
  copy c:\fd\files\nodediff.a* c:\fd\nodelist
  cd\fd\nodelist
  arce nodediff.a*
  del nodediff.a*
  del *.fdx
  mergenl                                          ;the encl.MERGENL 
  fdnc /f                                          ;archive
  goto start                                       ;you can add your other
                                                   ;"aftermail" programs here
