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]

 

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]) 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]

I look forward to any assistance you can provide. Thank you.

________________________________________________________

http://www.silverstones.com/thebat/TBUDLInfo.html

Reply via email to