Tis true! I hang myself in shame for not knowing that funciton!.
My actual question was is there a quick (like the previous function)
way to get the actual directory, so that I can appent my own filename
etc.
how I solved it is something along the lines of:
<cfscript>
rev = Reverse(CGI.PATH_TRANSLATED);
slash = "\";
rpath = RemoveChars(rev, 1, Find(slash, rev)-1);
path = Reverse(rpath);
</cfscript>
But I wondered if there was a built in function or standard method.
On Fri, 11 Jun 2004 16:15:02 +0200, Pascal Peters <[EMAIL PROTECTED]> wrote:
>
> Why? This even works in CF4!
>
> > -----Original Message-----
> > From: Mark Drew [mailto:[EMAIL PROTECTED]
> > Sent: vrijdag 11 juni 2004 15:10
> > To: CF-Talk
> > Subject: Re: Finding the current directory of a script
> >
> > Thanks for that, I am using CF5 tho hence the silly question :)
> >
> >
> >
> > On Fri, 11 Jun 2004 08:06:11 -0500, Raymond Camden
> > <[EMAIL PROTECTED]> wrote:
> > >
> > > getCurrentTemplatePath() will do it.
> > >
> > >
> >
> >
>
>
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
- Finding the current directory of a script Mark Drew
- RE: Finding the current directory of a script Raymond Camden
- RE: Finding the current directory of a script Pascal Peters
- RE: Finding the current directory of a script Mark Drew
- RE: Finding the current directory of a script Raymond Camden
- Re: Finding the current directory of a script Rick Root
- RE: Finding the current directory of a scr... Raymond Camden
- RE: Finding the current directory of a script Tim Blair