In my Application.cfm file, before the cfapplication tag is defined, I'm 
trying to get the absolute path of where the Application.cfm file sits. So 
far I've tried GetBaseTemplatePath, ExpandPath("."), and a few other tags to 
get the directory path. I can seem to get the right directory if the calling 
page is in the same directory as the Application.cfm. If it is in any 
subdirectory, that is where I am getting the problem.

If the structure looks like:

c:\inetpub\wwwroot\Application.cfm
c:\inetpub\wwwroot\file1.cfm
c:\inetpub\wwwroot\directory\file2.cfm

Basically, I want to get c:\inetpub\wwwroot\ BEFORE the cfapplication tag is 
defined. This needs to happen to matter what template is called, whether 
it's file1.cfm or file2.cfm. Like I said beofre, GetBaseTemplate for 
file2.cfm would return c:\inetpub\wwwroot\directory\ not c:\inetpub\wwwroot\ 
.

Any ideas?

Cedric 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185473
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to