CommonLib
Loading...
Searching...
No Matches
hedgedev::csl::diag::process Namespace Reference

Functions

template<typename TString = std::wstring_view>
bool Start (const std::filesystem::path &in_rPath, const std::vector< TString > &in_rArgs, std::optional< std::filesystem::path > in_work)

Function Documentation

◆ Start()

template<typename TString = std::wstring_view>
bool hedgedev::csl::diag::process::Start ( const std::filesystem::path & in_rPath,
const std::vector< TString > & in_rArgs = {},
std::optional< std::filesystem::path > in_work = {} )
inline

Starts a process.

Parameters
in_rPathThe path to the executable to start.
in_rArgsThe command line arguments to pass into the process.
in_workThe working directory of the process.
Returns
true if the process was started successfully. Otherwise, false.