string to FolderName
Remove caracteres não permitidos para nomes de pastas
Source
<Extension()>
Public Function toPath(conteudo As String) As String
conteudo = conteudo.Replace("/", "")
conteudo = conteudo.Replace("\", "")
conteudo = conteudo.Replace(":", "")
conteudo = conteudo.Replace("*", "")
conteudo = conteudo.Replace("?", "")
conteudo = conteudo.Replace("<", "")
conteudo = conteudo.Replace(">", "")
conteudo = conteudo.Replace("|", "")
Return conteudo
End Function
Example
filename.toPath()