How to combines an array of strings into a path in VB.NET

1 Answer

0 votes
Imports System.IO

Module Module1

    Sub Main()

        Dim s() As String = {"d:\software", "projects", "r2d2", "connections"}

        Dim p As String = Path.Combine(s)

        Console.WriteLine(p)

    End Sub

End Module

' run:
' 
' d:\software\projects\r2d2\connections

 



answered Aug 17, 2018 by avibootz

Related questions

1 answer 155 views
2 answers 173 views
1 answer 180 views
2 answers 253 views
1 answer 166 views
...