mirror of
https://github.com/boostorg/process.git
synced 2026-01-26 18:52:25 +00:00
small fix and updated examples
This commit is contained in:
@@ -11,12 +11,11 @@
|
||||
#include <boost/filesystem.hpp>
|
||||
|
||||
using namespace boost::process;
|
||||
using namespace boost::process::initializers;
|
||||
|
||||
int main()
|
||||
{
|
||||
//[work_dir
|
||||
execute(
|
||||
system(
|
||||
"test.exe",
|
||||
start_dir="../foo"
|
||||
);
|
||||
@@ -24,7 +23,7 @@ int main()
|
||||
|
||||
//[work_dir_abs
|
||||
boost::filesystem::path exe = "test.exe";
|
||||
execute(
|
||||
system(
|
||||
boost::filesystem::absolute(exe),
|
||||
start_dir="../foo"
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user