Is Root ?

I'd like to check if the SelectedPath returned by FolderBrowserDialog is a root.
Any suggestion how to achieve this ?
[126 byte] By [zvenny] at [2007-11-20 11:32:32]
# 1 Re: Is Root ?
I'd like to check if the SelectedPath returned by FolderBrowserDialog is a root.
Any suggestion how to achieve this ?What do you mean with 'is a root' a root depending to what or do you mean you want to check if the selected path is a directory like 'C:\' ?
JonnyPoet at 2007-11-9 11:36:45 >
# 2 Re: Is Root ?
if (myFolderBrowserDialog.SelectedPath == System.IO.Path.GetPathRoot(myFolderBrowserDialog.SelectedPath))
jmcilhinney at 2007-11-9 11:37:56 >