Advertisement
dereksir

Untitled

Dec 5th, 2023
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.26 KB | None | 0 0
  1. //..
  2.  
  3. {
  4.     //..
  5.  
  6.     // Start the process
  7.     process.Start();
  8.  
  9.     // Read the standard output
  10.     string output = process.StandardOutput.ReadToEnd();
  11.  
  12.     // Wait for the process to exit
  13.     process.WaitForExit();
  14.  
  15.     // Process the output
  16.     Console.WriteLine(output);
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement