Example #1
0
        protected virtual ProcessStartInfo CreateProcessStartInfo()
        {
            return(new ProcessStartInfo(ExecutableFilePath)
            {
                Arguments = CommandlineUtil.ComposeCommandlineArguments(GetExecutableArguments()),
                WorkingDirectory = TaskFolderPath, // The script should always start locally

                // NOTE: This assumes the process is a script or command-line executable.
                CreateNoWindow = true,
                UseShellExecute = false,
            });
        }