-watchexit (-we)
Previous Topic  Next Topic 

Category:

 

Attachments

 

Description: 

 

Switch used with -watchdir to exit after files found in the watch directory are sent as attachments. Used, therefore, for "one shot" directory watches - NetMailBot will wait patiently until files (optionally matching the -filemask) appear in the directory. It will then act as directed and exit.

 

Optional?

 

Yes.

 

Overrides:

 

None.

 

Overridden By:

 

None.

 

Other Parameters Required:

 

-to -from -server -watchdir

 

See Also:

 

 None.

 

Usage:

 

-watchexit

 

Example (cut-and-paste right into your batch file):

 

NetMailBot -watchexit -watchdir "C:\Documents and Settings\reports" -to email@domain.com -from email@domain.com -server mail.domain.com -subject "test" 

 

Comments:

 

None.