Hello All,
I am in VS 2013 Express writing in Visual Basic. I am trying to write to allow for Installation by the user of my project package to any directory they so choose.
I am a novice programmer. When the project is opened by the user it needs to find the .exe file absolute path to start the project.
How do I get that path and then where do I use it? Do I create a short cut in the install package? Or will Windows provide a start in the listed programs? Or both?
I have used:
Path.GetFullPath(MyFilename)
and
Dim MyFilename As String = "Access_testSQL.exe"
Dim getInfo As System.IO.FileInfo
Dim MyPath As System.IO.Path
getInfo = My.Computer.FileSystem.GetFileInfo("Access_testSQL.exe")
They both retutn a path but the wrong one. Is it because I am in VS testing? How do I test this?
I also need to find the path for an access db in the package but I am having the same trouble.
Thank You in Advance,
Tom
tnfaxpay
I am in VS 2013 Express writing in Visual Basic. I am trying to write to allow for Installation by the user of my project package to any directory they so choose.
I am a novice programmer. When the project is opened by the user it needs to find the .exe file absolute path to start the project.
How do I get that path and then where do I use it? Do I create a short cut in the install package? Or will Windows provide a start in the listed programs? Or both?
I have used:
Path.GetFullPath(MyFilename)
and
Dim MyFilename As String = "Access_testSQL.exe"
Dim getInfo As System.IO.FileInfo
Dim MyPath As System.IO.Path
getInfo = My.Computer.FileSystem.GetFileInfo("Access_testSQL.exe")
They both retutn a path but the wrong one. Is it because I am in VS testing? How do I test this?
I also need to find the path for an access db in the package but I am having the same trouble.
Thank You in Advance,
Tom
tnfaxpay