[#util-GetExePath]
= xref:util.adoc[util]::GetExePath
:relfileprefix: ../
:mrdocs:

Return path to current executable assuming it was invoked with argv0&period; If path could not be determined, returns an empty path&period;

== Synopsis

Declared in `&lt;util&sol;exec&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:fs/path.adoc[fs::path]
GetExePath(std::string&lowbar;view argv0);
----

== Return Value

The path to the current executable, or an empty path if unknown&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *argv0*
| The argv&lsqb;0&rsqb;value the process was invoked with&period;
|===


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