<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title>www.ritlabs.com [Topic: Removing part of the attachment name ?]</title>
		<link>http://www.ritlabs.com</link>
		<description>New posts in Removing part of the attachment name ? of  forum at www.ritlabs.com [www.ritlabs.com]</description>
		<language>en</language>
		<docs>http://backend.userland.com/rss2</docs>
		<lastBuildDateTag>Tue, 25 Mar 2008 20:40:15 +0200</lastBuildDateTag>		<item>
			<title>Removing part of the attachment name ?</title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum4/topic5975/message22819/">Removing part of the attachment name ?</a></b> in forum <a href="http://www.ritlabs.com/en/forums/forum4/">The Bat! - Configuring the E-mail Client</a>. <br />
			No, as far as TB is concerned your file doesn't exist until your script is calling TB and sets the file as attachment.<br />So the name changing part has to be done by your script, but when you change the file name before TB attaches it, that file name won't include the address, so the link between what file you sent to whom is lost when you copy the file to your 'sent' directory.<br /><br />So in stead of giving bits of a puzzle you might just give the whole story. You want to send files automatically.<br />How do you generate these files, are they always the same files?<br />You're naming these files with the address and a file name. Is it possible to let the generating program create a .cmd file too, in stead of the clumsy construct you're using now. (It looks familiar, I even might have helped you with it.)<br />How do you retrieve these addresses? Is it possible for TB to do that in a better way? <br />
			<i>25 March 2008 20:40:15, <a href="http://www.ritlabs.com/en/forums/">Roelof Otten</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum4/topic5975/message22819/</link>
			<guid>http://www.ritlabs.com/en/forums/forum4/topic5975/message22819/</guid>
			<pubDate>Tue, 25 Mar 2008 20:40:15 +0200</pubDate>
			<category>The Bat! - Configuring the E-mail Client</category>
		</item>
		<item>
			<title>Removing part of the attachment name ?</title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum4/topic5975/message22818/">Removing part of the attachment name ?</a></b> in forum <a href="http://www.ritlabs.com/en/forums/forum4/">The Bat! - Configuring the E-mail Client</a>. <br />
			Thank you for your kind reply.<br /><br />I now understand that TheBat! cannot rename an attachment.<br /><br />Can you tell me please, is it possible that TheBat! can do the following: <br /><br />instead of copying the email address portion of the file name, to the "Send To" line, can TheBat! cut (delete) the email portion of the file name and add it to the "Send To" line?<br /><br />I look forward to your reply. Thanks again. <br />
			<i>25 March 2008 19:51:15, <a href="http://www.ritlabs.com/en/forums/">Alex</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum4/topic5975/message22818/</link>
			<guid>http://www.ritlabs.com/en/forums/forum4/topic5975/message22818/</guid>
			<pubDate>Tue, 25 Mar 2008 19:51:15 +0200</pubDate>
			<category>The Bat! - Configuring the E-mail Client</category>
		</item>
		<item>
			<title>Removing part of the attachment name ?</title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum4/topic5975/message22816/">Removing part of the attachment name ?</a></b> in forum <a href="http://www.ritlabs.com/en/forums/forum4/">The Bat! - Configuring the E-mail Client</a>. <br />
			TB can't rename attached files, so you'd need to rename the file before it's attached. &nbsp; <br />
			<i>25 March 2008 18:51:06, <a href="http://www.ritlabs.com/en/forums/">Roelof Otten</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum4/topic5975/message22816/</link>
			<guid>http://www.ritlabs.com/en/forums/forum4/topic5975/message22816/</guid>
			<pubDate>Tue, 25 Mar 2008 18:51:06 +0200</pubDate>
			<category>The Bat! - Configuring the E-mail Client</category>
		</item>
		<item>
			<title>Removing part of the attachment name ?</title>
			<description><![CDATA[<b><a href="http://www.ritlabs.com/en/forums/forum4/topic5975/message22812/">Removing part of the attachment name ?</a></b> in forum <a href="http://www.ritlabs.com/en/forums/forum4/">The Bat! - Configuring the E-mail Client</a>. <br />
			I am using TheBat! (and it works successfully) to grab files from a folder, make the file into the attachment, and then send the file by email, to the email address that is in part of the file name, for example: alex111@hotmail.com~~mylifestory.txt.<br /><br />It works with the help of the files shown below.<br /><br />My question is; can these files be modified to do the following: After TheBat! puts the email address portion of the file name into the Send To: line,<br />can TheBat! remove the email address (and ~~) from the file name, (the attachment name), so that the attchment is just named mylifstory.txt?<br /><br /><br />Currently using these: <br />Sendfile.cmd: <br />For %%i in ("C:\Documents and Settings\Desktop\BAT\XXX\­*.txt") do "C:\Program Files\The Bat!\thebat.exe" /MailT="C:\Documents and Settings\Desktop\BAT\Send­file.tpl";A="%%i";To="%%i­";Send <br /><br />And a Sendfile.tpl: <br />%SetPattRegExp='C:\\Docum­ents and Settings\\Desktop\\BAT\XX­X\\(.*?)~~(.*?)\.txt'%- <br />%RegExpBlindMatch='%To'%-­ <br />%ModifyOnce(To)%- <br />%SetHeader(To,%SubPatt='1­')%- <br />%Subject="Hello." <br />Hi %ABToFirstName="%ToFName"­, <br />Thank you. <br />Regards, %FromFName <br /><br />And this Sorting Office template: <br />copy "C:\Documents and Settings\Desktop\BAT\XXX\­%Attachments" <br />"C:\Documents and Settings\brian\Desktop\BA­T\Sent" <br />del "C:\Documents and Settings\Desktop\BAT\XXX\­%Attachments" <br /><br />T <br />
			<i>25 March 2008 17:00:06, <a href="http://www.ritlabs.com/en/forums/">Alex</a>.</i>]]></description>
			<link>http://www.ritlabs.com/en/forums/forum4/topic5975/message22812/</link>
			<guid>http://www.ritlabs.com/en/forums/forum4/topic5975/message22812/</guid>
			<pubDate>Tue, 25 Mar 2008 17:00:06 +0200</pubDate>
			<category>The Bat! - Configuring the E-mail Client</category>
		</item>
	</channel>
</rss>
