I want to create a button that opens a supplied word document in their standard word handler like office or openoffice. But how do you find the Location of the exe (Or its folder) and using it to open the Word Document.

I have tried to use
VBCode Code:
  1. Function GetFilenameOnly(ByVal Fullpath As String) As String
  2.     Return System.IO.Path.GetFileNameWithoutExtention(FullPath)
  3. End Function
with no use. Please help!