You could also use the windows API function: void _splitpath(const char *path, char *drive, char *dir, char *fname, char *ext) in <stdlib.h>. For (my) convenience I use this in a C++ wrapper and return std::string values. One also needs to use the char *_getcwd(char *buffer, int maxlen) if you...