Skip to main content

both of this codes are for vb.net and working you can use this for debug path

TextBox2.Text = IO.Path Both of the examples are in VB.GetFullPath(ApplicationNET.ExecutablePath)

and use this one to get exact exe fileDebug path:

TextBox1.Text = My.Application.Info.DirectoryPath

TextBox1.Text = My.Application.Info.DirectoryPathEXE path:

TextBox2.Text = IO.Path.GetFullPath(Application.ExecutablePath)

both of this codes are for vb.net and working you can use this for debug path

TextBox2.Text = IO.Path.GetFullPath(Application.ExecutablePath)

and use this one to get exact exe file path

TextBox1.Text = My.Application.Info.DirectoryPath

Both of the examples are in VB.NET.

Debug path:

TextBox1.Text = My.Application.Info.DirectoryPath

EXE path:

TextBox2.Text = IO.Path.GetFullPath(Application.ExecutablePath)
Source Link

both of this codes are for vb.net and working you can use this for debug path

TextBox2.Text = IO.Path.GetFullPath(Application.ExecutablePath)

and use this one to get exact exe file path

TextBox1.Text = My.Application.Info.DirectoryPath