Méthode BuildPathBuildPath method
Combine un chemin d’accès au dossier et le nom d’un dossier ou d’un fichier et renvoie la combinaison avec des séparateurs de chemin d’accès valides.Combines a folder path and the name of a folder or file and returns the combination with valid path separators.
SyntaxeSyntax
objet. BuildPath (chemin d’accès, nom)object.BuildPath (path, name)
La syntaxe de la méthode BuildPath comprend les éléments suivants :The BuildPath method syntax has these parts:
ÉlémentPart | DescriptionDescription |
---|---|
objectobject | Obligatoire.Required. Toujours le nom d’un FileSystemObject.Always the name of a FileSystemObject. |
chemin d'accèspath | Obligatoire.Required. Chemin d’accès existant associé au nom .Existing path with which name is combined. Le chemin d’accès peut être absolu ou relatif et n’a pas besoin de correspondre à un dossier existant.Path can be absolute or relative and need not specify an existing folder. |
namename | Obligatoire.Required. Nom d’un dossier ou d’un fichier ajouté au _chemin d’accès_existant.Name of a folder or file being appended to the existing path. |
RemarquesRemarks
La méthode BuildPath insère si nécessaire un séparateur de chemin d’accès entre le chemin d’accès existant et le nom.The BuildPath method inserts an additional path separator between the existing path and the name, only if necessary.
Voir aussiSee also
Assistance et commentairesSupport and feedback
Avez-vous des questions ou des commentaires sur Office VBA ou sur cette documentation ?Have questions or feedback about Office VBA or this documentation? Consultez la rubrique concernant l’assistance pour Office VBA et l’envoi de commentaires afin d’obtenir des instructions pour recevoir une assistance et envoyer vos commentaires.Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.