Convert a mapping to a full path

2007-07-27 Thread marc --
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

Re: Convert a mapping to a full path

2007-07-27 Thread Barney Boisvert
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

Re: Convert a mapping to a full path

2007-07-27 Thread Jake Pilgrim
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

Re: Convert a mapping to a full path

2007-07-27 Thread Claude Schneegans
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