what is a convenient way to create a directory when a path like this is given: \"\\server\\foo\\bar\\\"
note that the intermediate directories may not exist.
If you can use an external library, I'd look at boost::filesystem
#include namespace fs=boost::filesystem; int main(int argc, char** argv) { fs::create_directories("/some/path"); }