Way overcomplicated but it works and I've gotten lazy just plugging it
in as an include.  There's gotta be an easier way, and Critter's
certainly looks like the ticket if you know the extension is 3 chars.

Anyone know a better way if you don't know the file extension length
(i.e. '.html')?

<cfset variables.FileStrip=
Left(Reverse(cgi.Script_Name),(FindOneOf("/",Reverse(cgi.Script_Name),1)
-1))>

<cfset variables.TheNameOnly=
Reverse(RemoveChars(variables.FileStrip,1,FindOneOf(".",variables.FileSt
rip,1)))>

----------------------------------------------------------
Matt Robertson   [EMAIL PROTECTED]  MSB Designs, Inc.
----------------------------------------------------------
An unbreakable toy is useful for breaking other toys.  
- Helpful Hints

[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to