A) You should NEVER assume what the directory is in your project. B) Just call GetCurrentDirectory() before the call then restore it afterward. You could encapsulate it in a class (which I have.) C) Alternatively, you could use the final directory buffer to build up the path as you go. It requires a little more parsing, but if you preserve the length to make it easier to strip the path back down, it's not difficult. (Yes, I've done it this way, especially in the DOS days.) Anyone who thinks he has a better idea of what's good for people than people do is a swine. - P.J. O'Rourke