When the button is clicked, I want the file to be opened.
The file will be in the same directory as the visual basic project.
Therefore, I need the code to open the file using "app.Path".
Any solutions?
Printable View
When the button is clicked, I want the file to be opened.
The file will be in the same directory as the visual basic project.
Therefore, I need the code to open the file using "app.Path".
Any solutions?
What kind of file are we talking about?
You must get the full path of the file, like this
App.Path & "\" & <name.ext>
Once you have it, you can call the ShellExecute API function passing as param the string you got before.
And OPEN will open the text file, but not decode the XML inside of it.
http://www.fileinfo.com/extension/xps