Advertisements

sanitize folderpath in vb.net

For Each lDisallowed As Char In System.IO.Path.GetInvalidPathChars()
Path = Path.Replace(lDisallowed.ToString(), “_”)
Next

Advertisements