>I would use the Substring() method in conjunction with the LastIndexOf() method to extract the last foldername in the path.
>
>Thanks,
>Einar
What is wrong here?
TargetFileText.Append("Directory: " & d.FullName.Substring(d.FullName.LastIndexOf(DirName)) & Environment.NewLine + Environment.NewLine)
Sorry for being dumb.
If it's not broken, fix it until it is.
My Blog