home *** CD-ROM | disk | FTP | other *** search
/ Troubleshooting Netware Systems / CSTRIAL0196.BIN / attach / pcc / v08n03 / netwrk.exe / FAXBAT13.ZIP / POLLSERV.BAT < prev    next >
DOS Batch File  |  1994-05-24  |  746b  |  33 lines

  1. @echo off
  2.  
  3. rem     Syntax: POLLSERV [(servername) [(username) [(password)]]]
  4.  
  5. rem     Server name = server to poll (default = current server).
  6. rem     User name   = user name for attach (no default).
  7. rem     Password    = password to use for attach (default = no password).
  8.  
  9. if '%1' == '' goto mapdrive
  10.  
  11. if not '%3' == '' stuffkey %3#013
  12. if not '%2' == '' f:\public\attach %1/%2 >nul
  13. if errorlevel 1 goto end
  14. f:\public\castoff all > nul
  15. f:\public\map i:=%1/sys:
  16.  
  17. :mapdrive
  18.  
  19. if '%1' == '' f:\public\map i:=sys:
  20.  
  21. i:
  22. f:\applic\pegasus\maildir
  23. h:
  24.  
  25. rem     Run all the batch files found in the mail directory of FAX user.
  26.  
  27. for %%f in (i:*.bat) do call %%f
  28.  
  29. :end
  30.  
  31. clearkey 0
  32. if not '%2' == '' f:\public\logout %1 > nul
  33.