I do need the script to e-mail me if a blank file is found though, rather than delete it.
I have not tested or used the following (bill ):
http://www.computerhope.com/forum/index.php?topic=62553.0http://www.blat.net/http://www.robvanderwoude.com/email.phpTo use this type of command in batch files we need to:
•precede the string with the START command
•replace every single percent sign ( % ) by double percent signs ( %% )
•"escape" ampersands ( & ) with carets ( ˆ )
•limit the length of the mailto string to the maximum allowable command line length minus 6 (leaving a maximum of 121 characters for MS-DOS, or 249 characters for Windows NT 4/Windows 2000, or 2035 for Windows XP)
Examples:
START mailto:
[email protected]?subject=Test%%20messageˆ&
[email protected]ˆ&body=Hi,%%0D%%0A%%0D%%0AThis%%20is%%20an%%20automatically%%20created%%20message.%%0D%%0A%%0D%%0ABye
This command will create a message to
[email protected], with a carbon copy to
[email protected], with the words "Test message" in the subject field.
The message itself will consist of the following text:
Hi,
This is an automatically created message.
Bye