[#BloombergLP-bdls-FilesystemUtil-setWorkingDirectory-00] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdls.adoc[bdls]::xref:BloombergLP/bdls/FilesystemUtil.adoc[FilesystemUtil]::setWorkingDirectory :relfileprefix: ../../../ :mrdocs: `setWorkingDirectory` overloads == Synopses Declared in `<bdls_filesystemutil.h>` Set the working directory of the current process to the specified `path`. Return 0 on success and a non‐zero value otherwise. The parameterized `STRING_TYPE` must be one of `bsl::string`, `std::string`, `std::pmr::string` (if supported), `bsl::string_view`, or `bslstl::StringRef`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static int xref:BloombergLP/bdls/FilesystemUtil/setWorkingDirectory-09.adoc[setWorkingDirectory](char const* path); ---- [.small]#xref:BloombergLP/bdls/FilesystemUtil/setWorkingDirectory-09.adoc[_» more..._]# Same as the overload taking `const char *`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class STRING_TYPE> static int xref:BloombergLP/bdls/FilesystemUtil/setWorkingDirectory-06.adoc[setWorkingDirectory](STRING_TYPE const& path); ---- [.small]#xref:BloombergLP/bdls/FilesystemUtil/setWorkingDirectory-06.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#