Re: About %COOKIE
Hi Han's Han's wrote: I'm frustration with %cookie, I have file .txt where macros in it, which called use %cookie for my replies, the content file .txt are: snip for while that I want is the result is generated automatically from %cookie, is it possible to do that ? or is the any idea for that ? Conceptually, the easiest way to do what you want is to create a bunch of text files. Each file would contain one of your templates. So in your example, you'd have 3 files: myreply1.txt, myreply2.txt, myreply3.txt If you really want the templates as quick templates, you'll still need the files, but in the files, just use a %QINCLUDE. For example, myreply1.txt would contain: %QINCLUDE=myreply1 Now for the trick. Once you've set up these files, you'll create one additional file, an index. List the full path and filenames for your templates, one per line (Note, this can be done with one easy DOS command if you wanted.) c:\somedir\myreply1.txt c:\somedir\myreply2.txt c:\somedir\myreply3.txt Assuming you called the index, index.dat, then in your main template, use: %INCLUDE=%COOKIE='c:\somedir\index.dat' -- Good luck, Januk Aggarwal __ Archives : http://tbtech.thebat.dutaint.com Moderators : mailto:[EMAIL PROTECTED] Unsubscribe: mailto:[EMAIL PROTECTED]
Re: About %COOKIE
Hello Januk. At 3:59 PM on Thursday, May 09, 2002 you wrote the following about [About %COOKIE]: Januk [...] Conceptually, the easiest way to do what you Januk want is to create a bunch of text files. Each file Januk would contain one of your templates. [/...] So a template included in a text file will execute on being inserted in an email msg? Would I use %INCLUDE [for random msg] or %INCLUDE or %PUT for specific files for specific purposes? TIA -- Jan Rifkinson Ridgefield, CT USA TB! V1.60c/W2K_SP2 ICQ 41116329 __ Archives : http://tbtech.thebat.dutaint.com Moderators : mailto:[EMAIL PROTECTED] Unsubscribe: mailto:[EMAIL PROTECTED]
Re: About %COOKIE
Hello Jan, Jan Rifkinson wrote: So a template included in a text file will execute on being inserted in an email msg? If you use the %INCLUDE macro to insert it, yes. Would I use %INCLUDE [for random msg] or %INCLUDE or %PUT for specific files for specific purposes? %INCLUDE acts the same as %QINCLUDE. The only difference between a QT and the templates %INCLUDE uses is where they are stored. For a QT, they are stored within TB, but with %INCLUDE, you can store your template in any text file. %PUT does not treat the file as a template, so it won't execute any macros. The advantage of %PUT is that you don't have to worry about the format of your content. You are free to use the '%' character anywhere without precautions. For a template, the '%' character has a special meaning, and so it is evaluated when the template is executed. Of course %INCLUDE has the advantage that you can have dynamic content in your text using macros. See the help file for more information. -- Good luck! Januk Aggarwal __ Archives : http://tbtech.thebat.dutaint.com Moderators : mailto:[EMAIL PROTECTED] Unsubscribe: mailto:[EMAIL PROTECTED]
Re: About %COOKIE
Historians believe that Thursday, May 09, 2002 at 12:59 PM was when, Januk Aggarwal [JA] typed the following: JA If you really want the templates as quick templates, you'll still need JA the files, but in the files, just use a %QINCLUDE. For example, JA myreply1.txt would contain: JA %QINCLUDE=myreply1 Er, scratch that. If you want them as quick templates, the easiest way is to make one file with the QT handles, one per line. Then in your main template use: %QINCLUDE=%COOKIE='c:\somedir\myreply.txt' -- Thanks for writing, Januk Aggarwal Despite these words, this page is blank. __ Archives : http://tbtech.thebat.dutaint.com Moderators : mailto:[EMAIL PROTECTED] Unsubscribe: mailto:[EMAIL PROTECTED]