convert absolut path to relative path 
Author Message
 convert absolut path to relative path

Hi !
Does anyone know how to convert an absolte path to a relative path an
dcan give me some tips?

Thanks
Christoph Gotthardt



Sun, 16 Feb 2003 03:00:00 GMT  
 convert absolut path to relative path

If it's relative path it's relative to something. So if you know that
"something" then just cut it from absolute path and that's it.
Example:

absPath="C:\dir1\dir2\dir3"
relPath1="dir2\dir3" 'relative to c:\dir1
relPath2="dir1\dir2\dir3" 'relative to c:\

If I understood your problem wrong, I'm sorry.

bye


Quote:
> Hi !
> Does anyone know how to convert an absolte path to a relative path an
> dcan give me some tips?

> Thanks
> Christoph Gotthardt



Tue, 18 Feb 2003 20:02:45 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Parsing an HTML Document - Change Relative paths to fully qualified paths

2. Best method of determining path, relative path and/or flie name

3. Creating relative directory path given fully-qualified path

4. Converting logical paths to UNC paths

5. Help converting UNC paths to physical paths.

6. Converting logical paths to UNC paths

7. How to convert local path to UNC-path?

8. How to convert local path to UNC-path?

9. How to convert path to UNC path?

10. relative/absolut position of fields

11. Flexible or relative path for import

12. Error trying to set relative path on linked powerpoint presentation

 

 
Powered by phpBB® Forum Software