Shows how to use xtd::process class with standard output redirection.
#include <xtd/diagnostics/process>
#include <xtd/io/stream_reader>
#include <xtd/console>
auto main() -> int {
start_info.redirect_standard_output(true);
auto& standard_output = process::start(start_info).standard_output();
console::write(reader.read_to_end());
}
bool use_shell_execute() const noexcept
Gets a value indicating whether to use the operating system shell to start the process.
Specifies a set of values that are used when you start a process.
Definition process_start_info.h:39
Implements a xtd::io::text_reader that reads characters from a byte stream.
Definition stream_reader.h:28
The xtd::diagnostics namespace provides classes that allow you to interact with system processes,...
Definition assert_dialog_result.h:10
The xtd::io namespace contains types that allow reading and writing to files and data streams,...
Definition binary_reader.h:16
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10