docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ExecUtility

    Utility class for executing shell commands synchronously and capturing their output.

    Inheritance
    object
    ExecUtility
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.SimulationPro
    Assembly: Unity.SimulationPro.Capture.dll
    Syntax
    public static class ExecUtility

    Methods

    Execute(string, string, params string[])

    Runs an external command synchronously and returns its output.

    Declaration
    public static string Execute(string directory, string command, params string[] arguments)
    Parameters
    Type Name Description
    string directory

    Working directory for the command.

    string command

    Shell command to run.

    string[] arguments

    Variable length list of arguments.

    Returns
    Type Description
    string

    The standard error output if non-empty; otherwise the standard output.

    In This Article
    Back to top
    Copyright © 2026 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)