Click here to Skip to main content
15,905,913 members
Home / Discussions / C#
   

C#

 
QuestionRe: Reading varbinary(max) Pin
CodingLover1-Feb-09 17:24
CodingLover1-Feb-09 17:24 
AnswerRe: Reading varbinary(max) Pin
SeMartens1-Feb-09 21:07
SeMartens1-Feb-09 21:07 
QuestionClose all application using c# Pin
sandhya1428-Jan-09 21:28
sandhya1428-Jan-09 21:28 
AnswerRe: Close all application using c# Pin
Ankit Rajpoot28-Jan-09 21:40
Ankit Rajpoot28-Jan-09 21:40 
GeneralRe: Close all application using c# Pin
sandhya1428-Jan-09 21:43
sandhya1428-Jan-09 21:43 
GeneralRe: Close all application using c# Pin
sandhya1428-Jan-09 21:58
sandhya1428-Jan-09 21:58 
GeneralRe: Close all application using c# Pin
SeMartens28-Jan-09 22:00
SeMartens28-Jan-09 22:00 
GeneralRe: Close all application using c# Pin
Ankit Rajpoot28-Jan-09 22:26
Ankit Rajpoot28-Jan-09 22:26 
Hello SeMartens,

I'm not talking about adding something to the process list, but to an instance of the
List
class. Like the following code:

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            List<Process> list = new List<Process>();
            string input="";

            Console.WriteLine("Enter path to a program to start it.");
            while (true)
            {
                input = Console.ReadLine();
                if (input == "exit")
                    break;
                try
                {
                    list.Add(Process.Start(input));
                }
                catch
                {
                    Console.WriteLine("Failed to start " + input);
                }
            }
            foreach (Process process in list)
            {
                if (!process.HasExited)
                    process.Kill();
            }
        }
    }
}

GeneralRe: Close all application using c# Pin
SeMartens28-Jan-09 22:30
SeMartens28-Jan-09 22:30 
GeneralRe: Close all application using c# Pin
sandhya1428-Jan-09 22:41
sandhya1428-Jan-09 22:41 
GeneralRe: Close all application using c# Pin
SeMartens28-Jan-09 22:53
SeMartens28-Jan-09 22:53 
GeneralRe: Close all application using c# [modified] Pin
charles henington12-May-10 18:44
charles henington12-May-10 18:44 
GeneralRe: Close all application using c# Pin
Ankit Rajpoot28-Jan-09 22:59
Ankit Rajpoot28-Jan-09 22:59 
AnswerRe: Close all application using c# Pin
SeMartens28-Jan-09 21:43
SeMartens28-Jan-09 21:43 
GeneralRe: Close all application using c# Pin
sandhya1428-Jan-09 22:17
sandhya1428-Jan-09 22:17 
GeneralRe: Close all application using c# Pin
Ankit Rajpoot28-Jan-09 22:27
Ankit Rajpoot28-Jan-09 22:27 
GeneralRe: Close all application using c# Pin
sandhya1429-Jan-09 20:04
sandhya1429-Jan-09 20:04 
GeneralRe: Close all application using c# Pin
Ankit Rajpoot29-Jan-09 21:01
Ankit Rajpoot29-Jan-09 21:01 
GeneralRe: Close all application using c# Pin
sandhya1429-Jan-09 21:12
sandhya1429-Jan-09 21:12 
GeneralRe: Close all application using c# Pin
Ankit Rajpoot29-Jan-09 21:22
Ankit Rajpoot29-Jan-09 21:22 
GeneralRe: Close all application using c# Pin
Ankit Rajpoot29-Jan-09 21:49
Ankit Rajpoot29-Jan-09 21:49 
GeneralRe: Close all application using c# Pin
sandhya1429-Jan-09 23:27
sandhya1429-Jan-09 23:27 
GeneralRe: Close all application using c# Pin
Ankit Rajpoot30-Jan-09 2:14
Ankit Rajpoot30-Jan-09 2:14 
QuestionProblem with C# not with VB6 Application Pin
Sun Rays28-Jan-09 21:12
Sun Rays28-Jan-09 21:12 
AnswerRe: Problem with C# not with VB6 Application Pin
Ankit Rajpoot28-Jan-09 21:24
Ankit Rajpoot28-Jan-09 21:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.