Brian,

The easiest way to create an html page is either CFHTTP, but I prefer to use
CFSaveContent.  Here is an example:

        <cfsavecontent variable="SEOHTMLPage">
                full html page with CFM code it in
        </cfsavecontent>

        <cffile action="WRITE" file="name of file.html" output="#SEOHTMLPage#"
addnewline="Yes">

We use this strategy for all our Search Engine placement pages becuase they
are static html pages.  When ever we update the main cfm page it runs
through the database and updates every html file accordingly and works
really well.

Jeremy


Jeremy Bruck,
VP of Technology
www.mfgquote.com


-----Original Message-----
From: cf talk [mailto:[EMAIL PROTECTED]
Sent: Friday, June 27, 2003 5:11 PM
To: CF-Talk
Subject: RE: used to use cfml.exe but MX doesn't have it...


Steve,

I would love to not use a bat file.  I just don't know how to create an html
file from the data of a CFM page.

Brian


Brian,

I asked this question before.  Short answer... Can't be done.  CFMX is now
entirely Java. No more cfml.exe.

I'm sure that there is probably some way to make it work, but instead I
found another way to do what I wanted.  Do you have to do it in a batch file
or can you find another way to do it?

Also, many people suggested using wget to run it.  I believe that they said
it was a free program.

What is does is pretend to be a web browser and hit the page.

Steve


-----Original Message-----
From: cf talk [mailto:[EMAIL PROTECTED]
Sent: Friday, June 27, 2003 4:29 PM
To: CF-Talk
Subject: used to use cfml.exe but MX doesn't have it...


I had a bat file that created an HTML page based off of the running of a CFM
page.  With MX, it doesn't work anymore.  Can anyone look at what I was
doing and give me some direction?


Bat file:


REM  *** set variable to contain URL variables
set QUERY_STRING="PASSEDNAME=a0002"

REM  *** set variable to call specific CF template
set CF_TEMPLATE_PATH=c:\Dir\gmd_hp_jms_critical_path_summ_html.cfm

REM  *** Run template into a tmp file
@for /f "usebackq skip=5 tokens=*" %%i in (`c:\CFusion\BIN\cfml`) do @echo+
%%i>>"c:\Dir\gmd_hp_jms_critical_path_summ.tmp"

REM *** Copy from the tmp file into the html file
copy "c:\Dir\GMDUtilities\gmd_hp_jms_critical_path_summ.tmp"
"c:\Dir\GMDUtilities\gmd_hp_jms_critical_path_summ.html"

REM *** Delete the tmp file if it is there
if exist "c:\Dir\gmd_hp_jms_critical_path_summ.tmp" del
"c:\Dir\gmd_hp_jms_critical_path_summ.tmp"



Thanks,

Brian Yager
President - North Alabama
Cold Fusion Users Group
http://www.nacfug.com
Ground-Based Midcourse Defense JPO
Contractor CSC
(256)313-9668
[EMAIL PROTECTED]




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Get the mailserver that powers this list at 
http://www.coolfusion.com

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to