I have a config file with a target directory path. At upgrade the path should be used to specify where a certain folder should be unpacked. The path may be relative installdir or absolute. Now I need to use the path to set the correct destination of the folder. If it is relative, I should append it to installdir, if it is absolute I should use it as is:
Examples of configurated paths and the corresponding desired result:
How do I code this?
You could the below code:
answered 28 Jul '13, 18:04