Skip to Content

Scripting example - Ping

This example demonstrates an action which starts a process, captures the standard output stream, and saves the output to a cell value.

Table schema

Column Data Type Primary Key Auto-generate Nullable
StandardOutput NVARCHAR(-1) No No No


using System.Diagnostics;

var processStartInfo = new ProcessStartInfo
    WorkingDirectory = @"C:\Windows\SysWOW64",
    FileName = "PING.EXE",
    Arguments = "",
    UseShellExecute = false,
    RedirectStandardOutput = true

string output;

using (var process = Process.Start(processStartInfo))
    output = process.StandardOutput.ReadToEnd();

Row["StandardOutput"].Value = output;