I am sure there is a better way, however the "\" is part of the ReReplace command for RegularExpressions.
Try: <cfset dir="D:\\"> <cfset slash_counter = #FindNoCase("\\",dir,1)#> <CFLOOP condition="slash_counter NEQ 0"> <cfset dir=#Replace(dir,"\\","\","All")#> <cfset slash_counter = #FindNoCase("\\",dir,1)#> </CFLOOP> >>> [EMAIL PROTECTED] 12/16/02 12:29PM >>> For some reason I can't to a replace on the following: dir = D:\\ <cfset test = #RERplace(dir,"\\","\","ALL")#> --------------------------------------------------- Colonel Nathan R. Jessop Commanding Officer Marine Ground Forces Guatanamo Bay, Cuba --------------------------------------------------- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com