• Advertisement
Sign in to follow this  

get parent directory

This topic is 3608 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Advertisement
Get a parent directory of what? Another directory? A file?

Share this post


Link to post
Share on other sites
If you have a directory name you don't need an API call. Just use string manipulation to lop off everything after the last \ in the name.

Share this post


Link to post
Share on other sites
Quote:
Original post by thre3dee
"..\" = "subfolder\..\..\" = .\..\" = ".\..\.\..\.\..\"
Not a problem after GetFullPathName

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement