newbie question!

yaniv

Well-known member
Joined
Apr 15, 2002
Messages
162
Location
israel
I want to understand something about xml, if i build an app. with xml file in it and i use the self packing of the .NET
where does the user computer will put the xml file ?
can i target the folder?
How can i build my app. so that it could find the right path in other computers?

with thanks.
 
When you create a Deployment project to deploy your project,
you can have it install any files that you want to any path.
Have it install the XML file to the same path that the project EXE
is installed to. Then, just refer to the applications path to
get to that file.

To get the Apps path, you can use Application.ExecutablePath
Code:
Dim appPath As String

appPath = System.IO.Path.GetDirectoryName(Application.ExecutablePath) & "\"
 
Back
Top