caykahve wrote: and the message box says: C:\Program Files I need to add something at the end of this string and then i try to use it in another function which needs the paths in double back slashes like: "C:\\Program Files" Then I try to do a conversion in PFPath in order to double the backslashes to change from "C:\Program Files" to "C:\Program Files" You don't actually need any conversion. The double back slash is needed only when you are writing a string literal in your code. That's because the back slash is a escape character (used in combinations like \t, \r and \n, to represent a tab, carrier return, and line feed characters), when what you want is an actual back slash character, you need to type it twice. However, the double back slash pair represents one (single) back slash character in memory. -- jlr http://jlamas.blogspot.com/[^]