Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Any simple way to put file names into the text file?
Message
General information
Forum:
Windows
Category:
Computing in general
Miscellaneous
Thread ID:
01285227
Message ID:
01299054
Views:
14
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform