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 213 views
1 answer 164 views
1 answer 201 views
1 answer 141 views
2 answers 123 views
1 answer 286 views
...