Hi Jose,
I haven't personally used environment variables with boost::filesystem and can't find any mention of it in the documentation. So I would assume that it is not supported.
You'll probably need to expand the environment variables in the path before it to boost::filesystem. Alternatively, if you're only using %TEMP% to determine the temp folder, you might as well use temp_directory_path():
boost::filesystem::path tcd = boost::filesystem::temp_directory_path() / "file_123456";
Also keep in mind that remove_all() will throw if the directory does not exist. Either use the non-throwing remove_all() or check if the directory exists using is_directory().
--
Best regards,
Martin Dyring-Andersen
SPAMfighter ApS
_______________________________________________
Boost-users mailing list
Boost...@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users