Пример #1
0
        public static ProcessResult Bat(this string cmd, ProcessOptions opts)
        {
            var escapedArgs = cmd.Replace("\"", "\\\"");

            return(Run("cmd.exe", $"/c \"{escapedArgs}\"", opts));
        }
Пример #2
0
        public static ProcessResult Bash(this string cmd, ProcessOptions opts)
        {
            var escapedArgs = cmd.Replace("\"", "\\\"");

            return(Run("/bin/bash", $"-c \"{escapedArgs}\"", opts));
        }