How to get the path of the current working directory in VB.NET

1 Answer

0 votes
Imports System
Imports System.IO

Public Class Program
    Public Shared Sub Main()
        Dim str As String = Directory.GetCurrentDirectory()
		
        Console.WriteLine(str)
    End Sub
End Class
 
 
 
 
' run:
'
' C:\Resources\directory\DotNet\Sandbox
'

 



answered Nov 18, 2023 by avibootz

Related questions

2 answers 225 views
1 answer 176 views
1 answer 221 views
1 answer 167 views
2 answers 138 views
1 answer 308 views
...