Jump to content
Xtreme .Net Talk

Recommended Posts

Posted (edited)

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:

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?

Edited by usvpn

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...