A C# WinForm application has two text boxes, each of which allows the user to specify a directory. Both directories must differ.
How can you detect when user has put in txtA "C:\temp" and "C:\temp\" in txtB? Directory.Exists() on both returns true and comparison of txtA.Text and txtB.Text says they differ. I really don't want to get into string manipulation if at all possible (have got in a mess in the past treating date/times as strings) and have looked through the Directory, DirectoryInfo and Path classes to see if there is any way of doing something along the lines of: Compare( Directory.GetReference( txtA ), Directory.GetReference ( txtB ) ) Thanks for any pointers. Aidan
