' Permet de récupérer seulement le nom de fichier à partir du chemin d'accès complet
Public Function GetFileNameFromFullPath(ByVal FullPath As String) As String
GetFileNameFromFullPath = Right$(FullPath, Len(FullPath) - InStrRev(FullPath, "\"))
End Function
' Permet de récupérer seulement le dossier à partir du chemin d'accès au fichier (avec extension)
' Exemple : Renvoie "C:\Dossier\" avec PathName="C:\Dossier\Fichier.exe"
Public Function GetPathFromFullPath(ByVal FullPath As String) As String
GetPathFromFullPath = Left$(FullPath, InStrRev(FullPath, "\"))
End Function
Le 30/12/2006 par MadMatt : Legere optimisation
Le 30/12/2006 par MadMatt : Re
Le 30/12/2006 par MadMatt : Re
Le 31/12/2006 par MadMatt : Modification des noms des fonctions
Seul les admins et l'auteur du code lui même peuvent modifier ce code.