Dec 16, 2015, 10:19 AM
Post #4 of 4
Hmm, assuming you launch your program from c:/users/desktop/ (and don't change directory), your default path is c:/users/desktop/.
Re: [balrajswamy] Get relative path from c:/users/desktop/csv/pdf/test.pdf
[In reply to]
A relative path is then the path compared to default path. For example, the relative path for c:/users/desktop/csv/pdf/ will be ./csv/pdf/. You'll be able to view the file c:/users/desktop/csv/pdf/test.pdf by typing something like:
or even simply:
(But I prefer the syntax with ./, it is clearer IMHO.)
That's all basically there is to relative path.
Is that what you were looking for? I am not quite sure after having seen your example, which I don't really understand. If not, please explain.