vbscript – BuildPath

METHOD:  FileSystemObject.BuildPath


Implemented in version 2.0

[newfullpath = ]object.BuildPath(path, name)

This method is used to append a name onto an existing path. The format of the new path is ‘existingpath\name’.

Code:
<%
dim filesys, newfullpath
set filesys=CreateObject(« Scripting.FileSystemObject »)
newfullpath = filesys.BuildPath(c:\inetpub\wwwroot, « images »)
%>

Output:
« c:\inetpub\wwwroot\images »

Laisser un commentaire

Votre adresse de messagerie ne sera pas publiée. Les champs obligatoires sont indiqués avec *

Vous pouvez utiliser ces balises et attributs HTML : <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>