copy the string one character at a time into another variable that is long enough to hold the extra characters. When an '\' is encountered just copy two of them.
But I have to question your reason for doing that. When you type a path from the keyboard into a variable you don't need the couble '\' characters. They are only needed when you use string literals in your program because the compiler has to interpret the characters.
Last edited by Ancient Dragon; Jan 6th, 2009 at 10:05 am.
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2282
Retired and Enjoying Life
Offline 21,950 posts
since Aug 2005