0
I have two paths:
C:\\anacarvalho\\Database\\Updates\\2017\\2017_04\\20170419_AC
- Path selected by a Folder browser dialog.C:\\anacarvalho\\Database\\Updates
- Path that is at the root of the system.
I need a way, that tells me if the path that was selected by Folder browser dialog, contains the same beginning of path 2. In this case you have to tell me that until the Updates is equal.
Can someone help me ?
Why aren’t you the best? It’s simple, minimalist and repurposes the implementation of the platform. You have my upvote.
– Oralista de Sistemas
I had put it because I didn’t know if there is a specific function for it. Anyway I edited my post, thanks.
– Francisco
The only change I would make would be to use
StartsWith
instead ofContains
, and in the second example ensure that the index isigual a zero
instead ofdiferente de menos um
.– Oralista de Sistemas