Make your own copy text below...thanks to Spike @ MACR.

@echo off
@setlocal
if "%CFMX_INSTALL%"=="" set CFMX_INSTALL=..
if not exist "%CFMX_INSTALL%\lib\cfusion.jar" goto err_cfdir
if "%1"=="" goto usage
if "%1"=="/?" goto usage
goto compile

:compile
set PATH=%CFMX_INSTALL%\runtime\bin;%PATH%
java -classpath %CFMX_INSTALL%\lib\cfusion.jar coldfusion.tools.Compiler
-webinf %CFMX_INSTALL%\wwwroot\WEB-INF %* 
goto end

:err_cfdir
echo Error: Could not locate %CFMX_INSTALL%\lib\cfusion.jar
echo   Please set CFMX_INSTALL path (ex: set CFMX_INSTALL=c:\CFusionMX)
goto end


:usage
echo usage: cfcompile [-f] -webroot webdir source [source ...]
echo   -f                       force compilation
echo   -webroot webdir          the doc root of the webserver
echo   source                   file or directory containing CFM templates
goto end

:end
@endlocal


-----Original Message-----
From: Shahzad.Butt [mailto:[EMAIL PROTECTED]] 
Sent: Friday, October 04, 2002 10:22 AM
To: Ryan Kime
Subject: RE: Running Everypage


Nice One.

Thanks a lot

-----Original Message-----
From: Ryan Kime [mailto:[EMAIL PROTECTED]] 
Sent: 04 October 2002 16:20
To: Shahzad.Butt
Subject: RE: Running Everypage


Here's my batch file for "touching" all of the cf pages. You may have to
tweak it a little, but I put mine in my CfusionMX\bin folder and then call
it from a command line giving it the directory where the web files are
located.

Here's an example...

C:\CFusionMX\bin>cfcompile -f -webroot c:\Inetpub\wwwroot C:\Inetpub\wwwroot
\yourfolder

-----Original Message-----
From: Shahzad.Butt [mailto:[EMAIL PROTECTED]] 
Sent: Friday, October 04, 2002 9:06 AM
To: CF-Talk
Subject: Running Everypage


Is there any script or something available which will run each page of my
application (I mean generate jar files and stuff). Reason doing that is I am
about to upload new Site and since I've installed MX each on live server,
page takes 10 times more than normal time (if its executed first time,
afterwards its OK). So I was wondering to run each page before it goes live
(which could be nightmare doing manually).
 
Shahzad 


**********************************************************************
This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm

Reply via email to