Convert a mapping to a full path
Hi, Is it possible to take a CFMX mapping (say /external to c:/datafiles/word/external) and use this in the cfile action=read file=fullPath tag? The mapping should be converted to a full path but since CFMX already knows this, it should be possible right? Thanks ~| ColdFusion is delivering applications solutions at at top companies around the world in government. Find out how and where now http://www.adobe.com/cfusion/showcase/index.cfm?event=finderproductID=1522loc=en_us Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:284731 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Convert a mapping to a full path
expandPath will do this. On 7/27/07, marc -- [EMAIL PROTECTED] wrote: Hi, Is it possible to take a CFMX mapping (say /external to c:/datafiles/word/external) and use this in the cfile action=read file=fullPath tag? The mapping should be converted to a full path but since CFMX already knows this, it should be possible right? Thanks ~| ColdFusion is delivering applications solutions at at top companies around the world in government. Find out how and where now http://www.adobe.com/cfusion/showcase/index.cfm?event=finderproductID=1522loc=en_us Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:284739 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Convert a mapping to a full path
expandPath('/external') Jake Pilgrim Hi, Is it possible to take a CFMX mapping (say /external to c:/datafiles/word/external) and use this in the cfile action=read file=fullPath tag? The mapping should be converted to a full path but since CFMX already knows this, it should be possible right? Thanks ~| ColdFusion is delivering applications solutions at at top companies around the world in government. Find out how and where now http://www.adobe.com/cfusion/showcase/index.cfm?event=finderproductID=1522loc=en_us Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:284750 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Convert a mapping to a full path
Put this in your application.cfm in your / directory: CFSET application.webRootDir = getDirectoryFromPath(applicationTemplatePath) This will give you the physical path for your / directory. From there, you can get anything you need. -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address: [EMAIL PROTECTED]) Thanks. ~| Get the answers you are looking for on the ColdFusion Labs Forum direct from active programmers and developers. http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72catid=648 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:284753 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4