|
-
July 14th, 1999, 02:50 AM
#1
How to obtain Relative path from Absolute path?
Hi,
How do I obtain the relative path (e.g. "..\..\Test.tmp" ) from the absolute path ( "C:\Test.tmp" ) with respect to a directory (e.g. C:\Temp2\Dir2 )? This should work irrespective of where the file Test.tmp is stored.
Do you have any sample code which could help me do this?
Any help would be greatly appreciated.
Thanks and Regards,
SN
-
February 6th, 2005, 12:57 AM
#2
Re: How to obtain Relative path from Absolute path?
-
February 6th, 2005, 01:40 PM
#3
Re: How to obtain Relative path from Absolute path?
Not sure PathRelativePathTo is exactly the function you need, but you can see an example here:
http://www.freevbcode.com/ShowCode.asp?ID=6137
JeffB
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|