I'd like to use an application's startup path but when I use Application,StartupPath it gives me a string like "C.\\Programs\\MyDirectory" and an other application couldn't take it (Unrecognizable directory path). I tried to use String.Replace(@"\\",@"\") but the result string is the same. How can I remove the double slashes