Hi,
I have a dynamic path and every time I want to check it and if it is the root of drive warn user, so I am doing this:
MyPath is returned from a control like FolderBrowseDialog so I'm sure it cannot be an invalid path...
Is it the best way you think?
I have a dynamic path and every time I want to check it and if it is the root of drive warn user, so I am doing this:
Visual Basic:
If MyPath = Directory.GetDirectoryRoot(MyPath) Then
'Warn user
End if
MyPath is returned from a control like FolderBrowseDialog so I'm sure it cannot be an invalid path...
Is it the best way you think?
Last edited: