Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
LB #1
Detect Directory
Is there any way to detect the fully qualified directory that the
requesting file resides in. For example, if my page was
[url]www.mysite.com/detect.cfm[/url], it could return something like
c:\inetpub\wwwroot\mysite\detect\ ?
I'm trying to put together a simple installation script, and I figure
having this auto-detected would save a lot of hassle having to ask the
host for the fully-qualified path.
Thanks for any help in advance
LB
LB Guest
-
change into a directory to create other folders/directory
I need to create sub folders in a parent folder.. i have ... <cfset session.parentdir = "e:\mainstuff\"> <cfdirectory action="create"... -
Active Directory Search fails ("The directory service is unavailab
Hi all, I'm having one of those nerve wrecking errors, when trying to perform a simple search in an Active Directory. The objective of the code... -
Server cannot access application directory ... The directory does not exist or is not accessible because of security settings
If you are using Windows XP in a Workgroup, rather than a Domain, then by default "Simple Filesharing" is turned on, and you won't see a security... -
Server cannot access application directory... The directory does not exist or is not accessible because of security settings.
Hi, I have this issue with the error below. Let me explain my goal and my server environement: Goal: To have 3 separate web servers reading... -
rsync exclude file - directory name without directory contents
When using rsync to maintain incremental backups significant space can be saved on the backup server by excluding directories that have non-critical... -
LB #2
Re: Detect Directory
LB wrote:
Answering my own post here for the benefit of anyone else that may be> Is there any way to detect the fully qualified directory that the
> requesting file resides in. For example, if my page was
> [url]www.mysite.com/detect.cfm[/url], it could return something like
> c:\inetpub\wwwroot\mysite\detect\ ?
>
> I'm trying to put together a simple installation script, and I figure
> having this auto-detected would save a lot of hassle having to ask the
> host for the fully-qualified path.
>
> Thanks for any help in advance
>
> LB
interested, found the solution as follows;
You can find the fully qualified path of the CF template using
CGI.CF_TEMPLATE_PATH.
Then do a replaceNoCase(CGI.CF_TEMPLATE_PATH,MyTemplate.cfm, "")
to eliminate the name of the template.
LB
LB Guest
-
LB #3
Re: Detect Directory
Just adding to this(!), found an easier route is to simply use;> Answering my own post here for the benefit of anyone else that may be
> interested, found the solution as follows;
>
> You can find the fully qualified path of the CF template using
> CGI.CF_TEMPLATE_PATH.
>
> Then do a replaceNoCase(CGI.CF_TEMPLATE_PATH,MyTemplate.cfm, "")
> to eliminate the name of the template.
>
> LB
GetDirectoryFromPath(CGI.cf_template_path)
Sorry!
LB Guest



Reply With Quote

