Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Any simple way to put file names into the text file?
Message
Information générale
Forum:
Windows
Catégorie:
Informatique en général
Divers
Thread ID:
01285227
Message ID:
01299054
Vues:
16
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform