What is the meaning of $(SolutionDir)\..\..\..\

15,689

You asked two completely independent questions. Below is the answer to your second one. I recommend re-asking your first one as a separate question.


The characters ..\ signify moving up the folder hierarchy by one level. So, if while in the directory a\b\c\d\e\f\g\ I referenced \..\..\..\, I would be now looking at a\b\c\d\ The starting \ simply says to reference the current directory and is (usually) optional.

Share:
15,689
lightrek
Author by

lightrek

I am currently cs student. I am trying to do some research in Computer Graphics and HCI. I also plan to embed my computer vision skill into my new HCI project

Updated on June 04, 2022

Comments

  • lightrek
    lightrek almost 2 years

    In the property sheet: for one User Macros, the name is OSGVE_DIR, with Value: $(SolutionDir)\..\..\..\..

    What is the path of $(SolutionDir) ? \..\..\..\.. the slashes means change to the sub directory or up directory?

    • ta.speot.is
      ta.speot.is about 11 years
      $(SolutionDir) is a macro, it should expand to the directory that holds your Solution.sln file. The SOLUTION DIRectory, I think it's called...
  • lightrek
    lightrek about 11 years
    So, you mean: if I have a directory: a\b\c, then a\b\c\.. change the directory to a\b ?
  • supersam654
    supersam654 about 11 years
    Exactly. Every "..\" moves up on level.