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]

Reply via email to