Advertisement
Fhernd

UsoKill.cs

Oct 1st, 2014
36,919
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.52 KB | None | 0 0
  1. using System;
  2. using System.Diagnostics;
  3. using System.Threading;
  4.  
  5. namespace Receta.CSharp.R0416
  6. {
  7.     public sealed class UsoKill
  8.     {
  9.         public static void Main()
  10.         {
  11.             // Creación de proceso de Bloc de notas:
  12.             Process procesoBlocNotas = Process.Start ("notepad.exe");
  13.            
  14.             // Espera de 3 segundos:
  15.             Thread.Sleep (3000);
  16.            
  17.             // Terminación abrupta del Bloc de notas:
  18.             procesoBlocNotas.Kill ();
  19.         }
  20.     }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement