Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Function find_executable_in_path

boost::process::find_executable_in_path

Synopsis

// In header: <boost/process/operations.hpp>


std::string find_executable_in_path(const std::string & file, 
                                    std::string path = "");

Description

Locates the executable program file in all the directory components specified in path. If path is empty, the value of the PATH environment variable is used.

The path variable is interpreted following the same conventions used to parse the PATH environment variable in the underlying platform.

Throws:

boost::filesystem::filesystem_error

PrevUpHomeNext