Jump to content
  • Advertisement
Sign in to follow this  
Jiia

Cleaning a path

This topic is 5195 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

Does anyone know of a nice little function that cleans a directory structured path, such as this..
C:\DirA\DirB\..\DirC\..\DirB\DirD\..\..\DirB\X
Which could be cleaned up to
C:\DirA\DirB\X
I know it's as simple as backtracking to the last slash for each ..\, but I would rather use a standard function if such a thing exists? Thanks for help.

Share this post


Link to post
Share on other sites
Advertisement
Ahh, thanks. I'm wondering if this function can use the same string buffer for destination and source. Doesn't say anything in the docs. I would guess that means no.

Very strange that such a simple task requires internet explorer. Microsoft keeps me guessing [evil]

Thanks again.

Share this post


Link to post
Share on other sites
Quote:
Original post by Jiia
...snip...

Very strange that such a simple task requires internet explorer. Microsoft keeps me guessingThanks again.


Yeah, they kept adding a lot of neat stuff using IE to basically update Windows. Thank god they stopped doing that again.

Share this post


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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!