I'm using the sendemail program to schedule a batch to send a group of daily reports to an outside recipient. The batch is below:
"c:\program files\sendemail\sendemail.exe" -f email@example.com -t firstname.lastname@example.org -u Test -m here are reports from %DATE% a test by neil
brecher -a %path%\abook.abk -s mailserver.domain.com:25 -xu email@example.com -xp password
While the example above will attach the single file "abook.abk", I would like to set a variable which will attach all of the files in the %path% directory. So far, %path%\*.*, and %path%\* have yielded no joy. Also leaving the path blank after the %path% variable doesn't work. The only way to have multiple attachments is to list them specifically with the path. Which, I guess isn't a big deal, but safer to send everything in the folder listed in the Path variable at the top of the batch file.