Will this work? <cfset myLongPath = "http://my.long.path.com/"> <cfset fileContents = "<cflocation url=""" & myLongPath & """ addtoken=""false"" />"> <cffile action="WRITE" file="d:\test\#newDirectory#\index.cfm" output="#fileContents #" />
~Brad -------- Original Message -------- Subject: using cffile and cfdirectory to create tinyURL-style aliases From: Cameron Johnson <john...@nais.org> Date: Thu, March 26, 2009 6:43 pm To: cf-talk <cf-talk@houseoffusion.com> Hi, all. I've been out of coding for too long and I can't figure this one out. Simple, really: using CFDIRECTORY and CFFILE, I want to create a folder, drop in an index.cfm file, then put a <cflocation> tag in that index.cfm file. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321022 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4