[#BloombergLP-bdls-FilesystemUtil-setWorkingDirectory-00]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdls.adoc[bdls]::xref:BloombergLP/bdls/FilesystemUtil.adoc[FilesystemUtil]::setWorkingDirectory
:relfileprefix: ../../../
:mrdocs:

Set the working directory of the current process to the specified `path`&period;

== Synopses

Declared in `&lt;bdls&lowbar;filesystemutil&period;h&gt;`

Set the working directory of the current process to the specified `path`&period;


[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&period;&period;&period;_]#

Set the working directory of the current process to the specified `path`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class STRING&lowbar;TYPE&gt;
static
int
xref:BloombergLP/bdls/FilesystemUtil/setWorkingDirectory-06.adoc[setWorkingDirectory](STRING&lowbar;TYPE const& path);
----

[.small]#xref:BloombergLP/bdls/FilesystemUtil/setWorkingDirectory-06.adoc[_» more&period;&period;&period;_]#

== Return Value

0 on success, and a non&hyphen;zero value otherwise

== Parameters

[cols="1,4"]
|===
| Name| Description
| *path*
| filesystem path of the new working directory
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
