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] +------------------------------------------------------------------------------------+ ______________________________________________________________________ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists