Problem solve Get help with specific problems with your technologies, process and projects.

Program to find path to your source code

This code determines the current path where your source code resides when it's not in the bin folder.

Please let other users know how useful this tip is by rating it at the bottom of the page. Do you have a tip or code of your own you'd like to share? Submit it here.


This code determines the current path where your source code resides when it's not in the bin folder.


Dim strAppPath, strFile
Dim strAppFolder As String = _
  System.IO.Path.GetFullPath (Application.StartupPath & "..")

'add a  at the end if it doesn't have one
If strAppFolder.EndsWith("") Then
   strAppPath = strAppFolder & "test.txt"
Else
   strAppPath = strAppFolder & "test.txt"
End If
MessageBox.Show(strAppPath)

Dig Deeper on Win Development Resources

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchCloudComputing

SearchSoftwareQuality

TheServerSide.com

Close