Here's another way:
path = ListRest(Reverse("C:\mywork\dir1\dir2\dir3\dir4\system.log"), "\")
Ade
-----Original Message-----
From: JediHomer [mailto:[EMAIL PROTECTED]
Sent: 17 May 2005 13:13
To: CF-Newbie
Subject: Re: Using ListLen
You could use getDirectoryFromPath(path)
HTH
On 5/17/05, Ed Wong <[EMAIL PROTECTED]> wrote:
> I have a directory path as such...
>
> path = C:\mywork\dir1\dir2\dir3\dir4\system.log
>
> I'm trying to grab everything up to the last "\" since the directory
structure (drilldown) could go deeper so I've been trying to use the
ListLen. Not sure if this is the correct way of doing it?
>
> <cfset test = #ListLen(Path,'\')#>
>
> I require a variable to contain this from the above example.
>
> path = C:\mywork\dir1\dir2\dir3\dir4
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49
Message: http://www.houseoffusion.com/lists.cfm/link=i:15:946
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/15
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:15
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54