home *** CD-ROM | disk | FTP | other *** search
- ;
- ; Script to automatically execute the mailrm e-mail forwarding program
- ; You must make sure that your Procomm options are set so that the
- ; host mode will HANGUP when a remote user logs out. If this option
- ; is set to re-cycle then host mode will never return control to the
- ; script command and mailroom.bat will never be invoked.
- ;
-
- ;
- ; You can change the name of this batchfile to anything convenient
- ;
- string batchname = "mailroom.bat"
-
- proc main ; script main procedure
- clear
- while (forever) ; just do host and run mailrm after each user
- host ; execute the host command
- if success ; if user didn't abort...
- dos batchname ; execute the DOS batch file to run mailroom
- endif
- endwhile
- endproc
-