Bonekrusher
Active member
- Joined
- Jul 4, 2007
- Messages
- 38
- Programming Experience
- 1-3
Hi,
I am trying to create a small vb.net app that calculates the relative path from the Application.StartupPath.
The users uses the openfiledialog to select a file, this returns the absolute path. How can I calculate the relative path?
Application.StartupPath = "c:\temp\app_file
User selected path = "c:\myxmlfile.xml"
Desired relsult = "../../myxmlfile.xml"
Thanks
I am trying to create a small vb.net app that calculates the relative path from the Application.StartupPath.
The users uses the openfiledialog to select a file, this returns the absolute path. How can I calculate the relative path?
Application.StartupPath = "c:\temp\app_file
User selected path = "c:\myxmlfile.xml"
Desired relsult = "../../myxmlfile.xml"
Thanks