Example #1
0
        static Process ShellOut(String command)
        {
            Process          process   = new Process();
            ProcessStartInfo startInfo = new ProcessStartInfo();

            startInfo.WindowStyle = ProcessWindowStyle.Hidden;
            startInfo.FileName    = "Resources\\node.exe";
            startInfo.Arguments   = command;
            process.StartInfo     = startInfo;
            process.Start();

            ChildProcessTracker.AddProcess(process);

            return(process);
        }
Example #2
0
        static Process ShellOut(String command)
        {
            Process          process   = new Process();
            ProcessStartInfo startInfo = new ProcessStartInfo();
            string           appDir    = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);

            startInfo.WorkingDirectory = appDir;
            startInfo.WindowStyle      = ProcessWindowStyle.Hidden;
            startInfo.FileName         = appDir + "\\Resources\\node.exe";
            startInfo.Arguments        = command;
            process.StartInfo          = startInfo;
            process.Start();

            ChildProcessTracker.AddProcess(process);

            return(process);
        }