Answer the question
In order to leave comments, you need to log in
How to use batch commands in PascalABC?
How to use batch commands in PascalABC? The option to write to a file and run through exec is not suitable.
Answer the question
In order to leave comments, you need to log in
begin
var start := new System.Diagnostics.ProcessStartInfo('tracert.exe', 'ya.ru');
start.RedirectStandardOutput := true;
start.UseShellExecute := false;
var process := System.Diagnostics.Process.Start(start);
process.OutputDataReceived += (sender, args) -> Println(args);
process.BeginOutputReadLine;
process.WaitForExit;
end.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question