I solved the problem. What I did was create a includable file
act_DirectoryClean.cfm which contains:
============================================================================
=
<cfset deleteAt = ListFind(list, "..", "\")>
<cfset list = ListDeleteAt(list, "#deleteAt#", "\")>
<cfset list = ListDeleteAt(list, "#Evaluate("deleteAt - 1")#", "\")>
<cfif ListContains(list, "..", "\")>
<cfinclude template="act_DirectoryClean.cfm">
</cfif>
============================================================================
=
Then in my main page, I had this code:
============================================================================
=
<cfif ListContains(URL.id, "..", "\")>
<cfset list = URL.id>
<cfinclude template="act_DirectoryClean.cfm">
</cfif>
============================================================================
=
Original message:
How can I dynamically convert:
d:\songs\..\drip\manual.txt
to:
d:\drip\manual.txt
or:
d:\Songs\Music\K\..\B\Buffett, Jimmy\Song.mp3
to:
d:\Songs\Music\B\Buffett, Jimmy\Song.mp3
?
I'm having a complete brain lapse!
Russel Madere, Jr.
Web Developer
TurboSquid
"Be good and you will be lonesome.
Be lonesome and you will be free.
Live a lie and you will live to regret it."
Jimmy Buffett
That's What Living Is To Me
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.