Hello BUY, On Mon, 20 May 2002 19:27:25 -0700GMT (21-5-02, 4:27 +0200GMT, where I live), you wrote:
BOTREN> That batch file is exactly what I'm looking for, but I have no idea BOTREN> how to incorporate a batch file into the Bat. Do I just insert the BOTREN> code below into my template, substituting my own paths, etc., BOTREN> or does this info get pasted somewhere else? A batch file is nothing else than a batch of dos commands collected in one file, the format of the file is plain text and the extension is .bat After you've saved it, you can use it as any other program. So the way to use it from a filter, is to run it as an external program (somewhere at two thirds of the action tab) Since you're apparently not familiar with batch files, I'll tell you step by step what this one does: BOTREN> --begin autowav.bat----------------------------- BOTREN> g: Change active drive to g: BOTREN> cd\autofoto change the active directory (on the active drive) to \autofoto (as I told you before, this batch file was adapted from one that I'm using for something else, so I used my own path info, so create a folder on whatever drive you want and make your batch file focus that folder.) BOTREN> for %%f in (*.wav) do This is a for loop in a batch file, it tests whether there are files matching your condition (in this case *.wav) and does what you want to. Note that both the for and the intended result should be on one line, something like 'for %%f in (whatever) do something' BOTREN> c:\progra~1\thebat~1\thebat.exe This is the path to TB, my path is the default: c:\Program Files\The Bat!\thebat.exe But dos and batch files aren't equipped to use long file names, especially when they've spaces in them, so this is what you'll get for batch files. BOTREN> /maila=g:\autofoto\%%f;t=g:\autofoto\sillytext.txt;s="Voicemail for Carlton in file %%f" The possibilities of the /mail switch of TB can be found in the help under 'Automated message creation' a= gives you the attachment t= gives you the template s= gives you the subject line The paths you use have to be adapted in this part, since I'm still using g:\autofoto Note this part has to be on the same line in your batch file as the beginning of the for loop, since this is an essential part of the command you want to execute. BOTREN> del *.wav Deletes all .wav files in the current directory. BOTREN> --end of autowav.bat---------------------------- For more info on batch files (I just googled for 'batch files') is http://gatsby.tafe.tas.edu.au/batch/ BOTREN> By the way, I'm using the 30-day trial version of the Bat BOTREN> Do you know what happens after the 30 days? I'm not sure, I think you won't be able to use it. I heard rumors though, that it's possible to request an additional 30 days. However I didn't need 30 days to realize that TB was the client I wanted. BOTREN> I don't want to lose all my settings, filters and BOTREN> directories (there are 96). I'd be very surprised if that would be the case. But you can always copy them and after registering copy them back. BOTREN> Thank you Roelof, You're welcome. -- Groetjes, Roelof ________________________________________________________ Current Ver: 1.60m FAQ : http://faq.thebat.dutaint.com Unsubscribe: mailto:[EMAIL PROTECTED] Archives : http://tbudl.thebat.dutaint.com Moderators : mailto:[EMAIL PROTECTED] TBTech List: mailto:[EMAIL PROTECTED] Bug Reports: https://bt.ritlabs.com

