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

-----Original Message-----
From: Pascal Peters [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 31, 2004 1:19 AM
To: CF-Talk
Subject: RE: Removing extensions from filelists

This will work in most cases, but not if there is a dot in the filename.
The easiest way to remove the extension is using the regexp I posted.
List functions will give problems in some cases.

Pascal

> -----Original Message-----
> From: Ewok [mailto:[EMAIL PROTECTED]
> Sent: 30 August 2004 13:15
> To: CF-Talk
> Subject: RE: Removing extensions from filelists
>
> <cfdirectory name="fls" directory="d:\my\dir\of\files" action=""> >
>
>
> <cfoutput query="fls">
>
> #replace(listFirst(name, "."), "_", " ", "ALL")#<br>
>
> </cfoutput>
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to