This puts the variable results text in reverse order. Not quite what I want.
I just want to pickup everyhing up to but not including the last "\"
old = C:\mywork\dir1\dir2\dir3\dir4\system.log
new = C:\mywork\dir1\dir2\dir3\dir4
>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?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:947
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