*       Your message is a reply to anothers post and is more than 100 lines
of text. Unless you are a major writer, your probably adding a lot of the
previous

*       replies. Please trim your posts when replying. Thank you.

                        

Well, you live in a perfect world if your encouragement works! I need to
know your secret!

In the event that it doesn’t work… cover it anyway…



<cfset FileName = "some.dumb.file.exe">

<cfset FileName = replace(replace(FileName, ".#ListLast(FileName, '.')#",
""), ".", "_", "ALL") & "." & ListLast(FileName, ".")>

<cfoutput>#FileName#</cfoutput>



This will turn some.dumb.file.exe into some_dumb_file.exe

   _____  

From: Mark Henderson [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 31, 2004 7:13 PM
To: CF-Talk
Subject: RE: Removing extensions from filelists

Thanks to both Pascal and Ewok (and pardon the delay in responding. I've
been out of the office). I also I must've missed your response detailing
regexp  as a solution Pascal, but I'm looking it up now. Til then I'm using
Ewoks solution since it seems to be working fine (no dots in filenames). I
encourage most of our users to go with underscores as opposed to dots or
spaces when naming their files.

Regards

Mark Henderson
Web Designer
mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>

205 Main Street
PO Box 143, Gore
Southland 9700
Phone: (03) 203 9999
Fax: (03) 203 9900


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.745 / Virus Database: 497 - Release Date: 8/27/2004

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.745 / Virus Database: 497 - Release Date: 8/27/2004
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to