Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

c# kill one excel process

static public void KillExcelWorkbook(string wbook)
{
  Process[] processes = Process.GetProcessesByName("Excel");
  if (processes.Length == 0)
    return;
  foreach(Process p in processes)
  {
    if (p.MainWindowTitle.Contains(wbook))
    {
      p.Kill();
      return;
    }
  }
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: unity notification 
Csharp :: unity c# struct 
Csharp :: c# is odd number 
Csharp :: c# check if char is string 
Csharp :: C# network traffic 
Csharp :: remove multiple items from list c# 
Csharp :: checking a gamobjects layer 
Csharp :: columndefinition wpf 
Csharp :: c# switch statements 
Csharp :: how to create public variable in c# 
Csharp :: convert int32 
Csharp :: how to locate a specific element in a list c# 
Csharp :: dictionary string list int c# 
Csharp :: ef core include 
Csharp :: first person mouse look unity 
Csharp :: if viewbag is null 
Csharp :: how to get rid of the slashes in datetime variables c# 
Csharp :: c# funtion 
Csharp :: run file windows forms 
Csharp :: unity2d movement 
Csharp :: c# remove all items from list where item value is null 
Csharp :: c# loop array 
Csharp :: ActionExecutingContext result response return 
Csharp :: Allow edit in Datagrid C# 
Csharp :: c# list find index 
Csharp :: distance between two objects unity 2d 
Csharp :: c# get random index from list 
Csharp :: convert list string to list enum c# 
Csharp :: take photo function in unity 
Csharp :: how to add skybox in unity 
ADD CONTENT
Topic
Content
Source link
Name
8+6 =