It is allowed in windows to use '.' anywhere in file names and directory names and the length of extension is not limited to 3 characters. I would find the last '/' in the string as a separator between the filename and directory and the last '.' before the file extension. I have a directory named 'Prj_sys.xl5'. Where does your list of strings come from?
Offshore marine farms - out of sight, out of mind? http://www.ecan.govt.nz/marine-farms.html ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. The contents of this email and any attachments are not formal policy of Environment Canterbury, unless otherwise stated. ********************************************************************** --------------------------------------------------------------------------- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi" Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/