Hi,

The code below checks for the filenames and extensions:

<cfif (ListFindNoCase("dat",listLast(#Session.stDirFileName[i]#, ".")) OR
                                           
ListFindNoCase("job",listLast(#Session.stDirFileName[i]#, 
".")) OR
                                           
ListFindNoCase("inc",listLast(#Session.stDirFileName[i]#, 
".")) OR
                                           
ListFindNoCase("log",listLast(#Session.stDirFileName[i]#, 
".")))>
</cfif>

Some of the file have a "~" at the end. For example, test.dat~

How can I easily check the above variable for the "~". Note that the file 
extension could be more than three characters to the right of the "."





+-----------------------------------------------------------------------------------+ 

Philip Humeniuk
[EMAIL PROTECTED]
[EMAIL PROTECTED]
+------------------------------------------------------------------------------------+



-------------------------------------------------------------------------
This email server is running an evaluation copy of the MailShield anti-
spam software. Please contact your email administrator if you have any
questions about this message. MailShield product info: www.mailshield.com

-----------------------------------------------
To post, send email to [EMAIL PROTECTED]
To subscribe / unsubscribe: http://www.dfwcfug.org

Reply via email to