I think it is getDirectoryFromPath(script_name) if you use script_name it
will return the current directory otherwise just use the
c:\wwwroot\1234\index.cfm approach.

----- Original Message -----
From: "Tony Schreiber" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, April 24, 2001 10:04 PM
Subject: Re: get the directory a file is in.


> ExpandPath('relativepath/filebeingrun.cfm')
>
> > 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?
> >
> > Thanks for any help.
> >
> >
> >
> >
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to