How can I get the current directory?
You can get the current directory as follows:
In C#
string CurrentDir = System.Environment.CurrentDirectory:And in VB .NET:
Dim CurrentDir As String = System.Environment.CurrentDirectory
© (c) 2026 Oak Leaf Enterprises, Inc., 1996-2026 • Updated: 06/22/09
Comment or report problem with topic
