コード例 #1
0
        CreateNetworkServerProcess
        (
            String[] asCommandLineArguments
        )
        {
            Debug.Assert(asCommandLineArguments != null);

            ProcessStartInfo oProcessStartInfo = new ProcessStartInfo();

            oProcessStartInfo.FileName =
                NodeXLClickOncePathUtil.GetPathOfFileInNodeXLFolder(
                    NetworkServerFileName);

            oProcessStartInfo.Arguments =
                FormatCommandLineArguments(asCommandLineArguments);

            oProcessStartInfo.UseShellExecute        = false;
            oProcessStartInfo.RedirectStandardOutput = true;
            oProcessStartInfo.RedirectStandardError  = true;
            oProcessStartInfo.CreateNoWindow         = true;

            Process oProcess = new Process();

            oProcess.StartInfo = oProcessStartInfo;

            return(oProcess);
        }
コード例 #2
0
        CreateGraphMLFileProcessorProcess
        (
            String[] aArgs
        )
        {
            Debug.Assert(aArgs != null);

            ProcessStartInfo oProcessStartInfo = new ProcessStartInfo();

            oProcessStartInfo.FileName =
                NodeXLClickOncePathUtil.GetPathOfFileInNodeXLFolder(
                    GraphMLFileProcessorFileName);

            oProcessStartInfo.Arguments = String.Join(" ", aArgs);

            Process oProcess = new Process();

            oProcess.StartInfo = oProcessStartInfo;

            return(oProcess);
        }