What is this called?
-
Inside every directory there are two 'folders' with the names of '.' and '..' Is there a common name for them like 'reparse point' or something? The reason I ask is that I have created a macro to check for them in a FindFile loop, and
IS_INVALID()
doesn't really make for clear understanding.Waldermort
-
Inside every directory there are two 'folders' with the names of '.' and '..' Is there a common name for them like 'reparse point' or something? The reason I ask is that I have created a macro to check for them in a FindFile loop, and
IS_INVALID()
doesn't really make for clear understanding.Waldermort
I thought they were "shortcuts" in DOS... Maybe this will help: Why is the period a shortcut for the current directory?[^]
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
I thought they were "shortcuts" in DOS... Maybe this will help: Why is the period a shortcut for the current directory?[^]
Mark Salsbery Microsoft MVP - Visual C++ :java:
I suppose
IS_SHORTCUT()
is better thanIS_INVALID()
Waldermort
-
I suppose
IS_SHORTCUT()
is better thanIS_INVALID()
Waldermort
Or IS_DOSSHORTCUT or IS_DIRSHORTCUT or IS_SHORTCUTDIR... :) Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
Or IS_DOSSHORTCUT or IS_DIRSHORTCUT or IS_SHORTCUTDIR... :) Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
Or
IS_ONEOFTHOSEANNOYINGDOSSHORTCUTSTHATADDUNDESIREDSTRINGCOMPARRISSONS()
Waldermort
-
Or
IS_ONEOFTHOSEANNOYINGDOSSHORTCUTSTHATADDUNDESIREDSTRINGCOMPARRISSONS()
Waldermort
WalderM wrote:
IS_ONEOFTHOSEANNOYINGDOSSHORTCUTSTHATADDUNDESIREDSTRINGCOMPARRISSONS
Perfect! Self-commenting too! :laugh:
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
Inside every directory there are two 'folders' with the names of '.' and '..' Is there a common name for them like 'reparse point' or something? The reason I ask is that I have created a macro to check for them in a FindFile loop, and
IS_INVALID()
doesn't really make for clear understanding.Waldermort
-
Inside every directory there are two 'folders' with the names of '.' and '..' Is there a common name for them like 'reparse point' or something? The reason I ask is that I have created a macro to check for them in a FindFile loop, and
IS_INVALID()
doesn't really make for clear understanding.Waldermort
WalderMs there a common name for them like 'reparse point' or something?
I'm not sure if this is the answer you're looking for, but . is a pointer to the Current directory while .. is a pointer to the parent directory.
Michael Martin Australia "I controlled my laughter and simple said "No,I am very busy,so I can't write any code for you". The moment they heard this all the smiling face turned into a sad looking face and one of them farted. So I had to leave the place as soon as possible." - Mr.Prakash One Fine Saturday. 24/04/2004