> Is there a way to get the name of the directory a file that is being
> processed is in? Let's say, in a file
>
> C:\wwwroot\1234\index.cfm
>
> is there a way to retrieve "C:\wwwroot\1234\" part in the index.cfm
> file?
Yes, you can reference the CGI.CF_TEMPLATE_PATH variable, which will contain
the entire string "C:\wwwroot\1234\index.cfm". You can then just parse out
the part after the last slash, and that's your path.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists