-watchdir (-wd)
Previous Topic  Next Topic 

Category:

 

Attachments

 

Description: 

 

Specifies a directory to watch for files to send as attachments. NetMailBot will continuously monitor the directory and until the key combination CTRL-C is pressed.

 

NOTE: Requires either -watchmoveto or -watchdelete to also be specified. When a file is detected in the watch directory, NetMailBot must either move it to another location or delete it after performing any other specified actions (e.g. sending it as an attachment) to avoid mistaking it for a "new" file matching the filemask the next time it checks the directory.

 

Optional?

 

Yes.

 

Overrides:

 

None.

 

Overridden By:

 

None.

 

Other Parameters Required:

 

-to -from -server (-watchmoveto or -watchdelete)

 

See Also:

 

-filemask -watchexit -watchwait -zip -attachsubfolders -watchfilenameisto -watchfilenameisbody -watchone

 

Usage:

 

-watchdir "<path to selected watch dir>"

 

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

 

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

 

Comments:

 

None.