I like to trim the following string:
"c:\program file\MTC\MTC\BIN\DEBUG"
into
"c:\program file\MTC"

What is the best way to do this? Thanks!