BuildPath replacement? [beginner]

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Grok

    #1

    BuildPath replacement? [beginner]

    Would someone point me to the VB.NET replacement for the BuildPath
    member of the FileSystemObjec t?

    I would like to concatenate a path without having to write the mundane
    code determining whether the separators "/" are present. BuildPath did
    this in the past.

    newFullPath = fso.BuildPath(d irPath, filename)
  • Tom Shelton

    #2
    Re: BuildPath replacement? [beginner]

    On 2007-12-17, Grok <grok@valhallal egends.comwrote :
    Would someone point me to the VB.NET replacement for the BuildPath
    member of the FileSystemObjec t?
    >
    I would like to concatenate a path without having to write the mundane
    code determining whether the separators "/" are present. BuildPath did
    this in the past.
    >
    newFullPath = fso.BuildPath(d irPath, filename)
    System.IO.Path. Combine

    --
    Tom Shelton

    Comment

    • Pedro Luna Montalvo

      #3
      Re: BuildPath replacement? [beginner]

      You should try:

      newFullPath = System.IO.Path. Combine(dirPath , filename)


      PeterMoon,
      Gye, Ecu


      "Grok" <grok@valhallal egends.comescri bió en el mensaje de
      noticias:op8dm3 lshoilm0mc98sau htjf3t3sj9joe@4 ax.com...
      Would someone point me to the VB.NET replacement for the BuildPath
      member of the FileSystemObjec t?
      >
      I would like to concatenate a path without having to write the mundane
      code determining whether the separators "/" are present. BuildPath did
      this in the past.
      >
      newFullPath = fso.BuildPath(d irPath, filename)

      Comment

      Working...