[thelist] CF Question: Permutation of right(string, count)

Seth Bienek seth at sethbienek.com
Mon Jan 8 17:57:46 CST 2001


Not to self: read subject line before replying. :)

<tip type="ColdFusion" topic="Running CF templates from command-line"
reason="penance">

You can write a quickie batch file to run administrative-type cf templates,
etc. from a command line on NT/2k.  Just make sure you set the appropriate
environvent variables, and it's cake..

It can be also used to elegantly circumvent the well-know problems with
CFSCHEDULE.  Here's an example:

archive.bat:
-------------------------
Set a variable telling CF which template to execute
SET CF_TEMPLATE_PATH=z:\inetpub\wwwroot\admin\archive.cfm

REM Execute the CF Executable
c:\cfusion\bin\cfml.exe
-------------------------

That's all there is to it!
</tip>

Seth

------------------------------
Seth Bienek
Solutions Development Manager
Stonebridge Technologies, Inc.
972.455.7294 tel
972.404.9754 fax
------------------------------
>





More information about the thelist mailing list