what is a relative path?
i know what is an absolute path, but what is a relative path? i read wikipedia, but still can't picture it.
Easy.
Say you are in C:\main\test\folder1 directory.
The relative path to C:\main\test\folder2 directory would be ..\folder2 with the .. denoting the parent directory.
The relative path to C:\main\test\folder1\subfolder directory would be \subfolder and it's that easy.
This is of course for Windows directory.
Originally posted by GIB:Easy.
Say you are in C:\main\test\folder1 directory.
The relative path to C:\main\test\folder2 directory would be ..\folder2 with the .. denoting the parent directory.
The relative path to C:\main\test\folder1\subfolder directory would be \subfolder and it's that easy.
This is of course for Windows directory.
so can i say the relative path can only work if your parent directories are the same from the source folder, to the destination folder. (in this case, you wanna go from folder1 to folder2)?
Yes, both source and destination must share the same root directory which in this case is C:\
i think i get it now. tnx
Aiya some theory terms are lame enough to be made sophisticated with different names and sorts, just be smart to observe and all will be easy.
haha, my textbook was abit confusing, but i see it now. =) tnx!!