Re: Can TB move a file, and send a link to it?
"Brian Archer" <[email protected]> Mon, 14 Apr 2008 06:43:57 -0700
| Newsgroups | gmane.mail.the-bat.devel |
|---|---|
| Message-ID | <000001c89e35$96b2e1a0$6601a8c0@BARCHER> |
Thank you for your replies. Based on these replies I would like to ask for some specific help. Files now arrive into Folder XX, these renamed files have names like this name: [email protected]~~myLifeStory.txt Presently I'm using a SendFile.cmd and Sendfile.tpl to grab the email address and send the file as an attachment. However that maxs out theBat outbox quite quickly upon testing of this. So, I'd like to get help instead, with moving the file to its own folder, and sending an email with a url link to that file. Such as, 1.TheBat! moves the file ( [email protected]~~myLifstory.com) from Folder XX to folder named "[email protected]". 2.TheBat! somehow gets the link of the file, adds the link to the text of an email, puts the email address in the subject line and sends it. Can these SendFile.cmd and sendfile.tpl files, that I'm currently using, be modified to perform 1 and 2 above? The current files are: Sendfile.cmd: For %%i in ("C:\BAT\XX\*.txt") do "C:\Program Files\The Bat!\thebat.exe" /MailT="C:\BAT\Sendfile.tpl";A="%%i";To="%%i";Send Sendfile.tpl: %SetPattRegExp='C:\\BAT\\XX\\(.*?)~~(.*?)\.txt'%- %RegExpBlindMatch='%To'%- %ModifyOnce(To)%- %SetHeader(To,%SubPatt='1')%- %Subject="Hello" Hi %ABToFirstName="%ToFName", Thank you. Regards, %FromFName I guess the link would be something like: www.domain.com/BAT/XX/[email protected]/[email protected]~~mylifestory.txt I look forward to any assistance you can provide. Thank you.