Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

c# how to run external program

Process ExternalProcess = new Process();
ExternalProcess.StartInfo.FileName = "Notepad.exe";
ExternalProcess.StartInfo.WindowStyle = ProcessWindowStyle.Maximized;
ExternalProcess.Start();
ExternalProcess.WaitForExit();
Comment

how to run an external program with c#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;

namespace Demo_Console
{
    class Program
    {
        static void Main(string[] args)
        {
            Process ExternalProcess = new Process();
            ExternalProcess.StartInfo.FileName = "Notepad.exe";
            ExternalProcess.StartInfo.WindowStyle = ProcessWindowStyle.Maximized;
            ExternalProcess.Start();
            ExternalProcess.WaitForExit();
        }
    }
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: unity how to see what scen you are in 
Csharp :: c# string equals ignore case 
Csharp :: unity float from another script 
Csharp :: how to detect a mouse click in unity 
Csharp :: unity how to refrsh scene 
Csharp :: c# async sleep 
Csharp :: check if gameobject is active 
Csharp :: c# alphabet array 
Csharp :: convert string array to int c# 
Csharp :: how to convert float to int in c# unity 
Csharp :: Getting data from selected datagridview row and which event 
Csharp :: c# or 
Csharp :: how to wait in c# 
Csharp :: unity enable gameobject 
Csharp :: how to disable a gameObject unity c# 
Csharp :: camera follow player unity smooth 
Csharp :: how to convert string to bool c# 
Csharp :: c# create new thread 
Csharp :: init dictionary c# 
Csharp :: sconvert string to title case + C3 
Csharp :: how to find the mouse position unity 
Csharp :: c# print all property values of object 
Csharp :: isprime c# 
Csharp :: c# get object property value by name 
Csharp :: c# map number range 
Csharp :: C# console app how to run another program 
Csharp :: c# declare empty string array 
Csharp :: unity if or 
Csharp :: how to unset passwordchar in c# windows application 
Csharp :: how to make a quit button in unity 
ADD CONTENT
Topic
Content
Source link
Name
3+7 =