Click here to Skip to main content
15,890,609 members
Home / Discussions / C#
   

C#

 
QuestionEnumerate over an enumeration Pin
eggsovereasy5-Jan-07 4:29
eggsovereasy5-Jan-07 4:29 
AnswerRe: Enumerate over an enumeration Pin
Ravi Bhavnani5-Jan-07 4:32
professionalRavi Bhavnani5-Jan-07 4:32 
GeneralRe: Enumerate over an enumeration Pin
eggsovereasy5-Jan-07 4:37
eggsovereasy5-Jan-07 4:37 
QuestionPing in .NET 1.1 Pin
MartyExodus5-Jan-07 3:48
MartyExodus5-Jan-07 3:48 
AnswerRe: Ping in .NET 1.1 Pin
ednrgc5-Jan-07 4:01
ednrgc5-Jan-07 4:01 
AnswerRe: Ping in .NET 1.1 Pin
PIEBALDconsult5-Jan-07 4:03
mvePIEBALDconsult5-Jan-07 4:03 
AnswerRe: Ping in .NET 1.1 Pin
Dan Neely5-Jan-07 4:07
Dan Neely5-Jan-07 4:07 
GeneralRe: Ping in .NET 1.1 Pin
MartyExodus5-Jan-07 4:41
MartyExodus5-Jan-07 4:41 
Ha. Thank you everyone for your quick responses. However, I'm still having a slight problem, possibly due to that fact that i didn't articulate my original problem.

ednrgc and PIEBALDconsult - The reason that i didn't do as the two of you said is simply this: System.Net.NetworkInformation doesn't exist in .NET 1.1, and as such, the Ping class doesn't exist either (Or I possibly don't know how to access them, but I'm pretty sure I'm right)

dan neely - I believe this method will work, however, I'm rather uncertain as to HOW to use it. This is what I have so far:

using System;
using System.Diagnostics;
using System.IO;

private void ping(string computer)
{
    string args = "/k ping " + computer;
    Process p = new System.Process()
    ProcessStartInfo ps = new ProcessStartInfo("cmd", args);
    p.StartInfo = ps;
    p.Start();
    StreamReader s = p.StandardOutput;
    MessageBox.Show(s.Readline);
}


The command prompt loads correctly, but alas, the StreamReader fails, and the MessageBox does not show. It generates an InvalidOperationException, and simply states "StandardOutput has not been redirected."


Thanks everyone again for the quick response, and hopefully, you can help me further.

Thanks,
MartyExodus
GeneralRe: Ping in .NET 1.1 Pin
led mike5-Jan-07 5:19
led mike5-Jan-07 5:19 
GeneralRe: Ping in .NET 1.1 Pin
MartyExodus5-Jan-07 7:20
MartyExodus5-Jan-07 7:20 
GeneralRe: Ping in .NET 1.1 Pin
led mike5-Jan-07 9:31
led mike5-Jan-07 9:31 
GeneralRe: Ping in .NET 1.1 Pin
PIEBALDconsult5-Jan-07 7:33
mvePIEBALDconsult5-Jan-07 7:33 
AnswerRe: Ping in .NET 1.1 Pin
Luc Pattyn5-Jan-07 6:12
sitebuilderLuc Pattyn5-Jan-07 6:12 
AnswerRe: Ping in .NET 1.1 Pin
Nader Elshehabi5-Jan-07 11:02
Nader Elshehabi5-Jan-07 11:02 
JokeNEED HELP - Urgent Pin
ednrgc5-Jan-07 3:38
ednrgc5-Jan-07 3:38 
GeneralRe: NEED HELP - Urgent Pin
Not Active5-Jan-07 3:52
mentorNot Active5-Jan-07 3:52 
GeneralRe: NEED HELP - Urgent Pin
lost in transition 5-Jan-07 4:51
lost in transition 5-Jan-07 4:51 
GeneralRe: NEED HELP - Urgent Pin
J4amieC5-Jan-07 5:00
J4amieC5-Jan-07 5:00 
GeneralRe: NEED HELP - Urgent Pin
ednrgc5-Jan-07 5:02
ednrgc5-Jan-07 5:02 
GeneralRe: NEED HELP - Urgent Pin
led mike5-Jan-07 5:14
led mike5-Jan-07 5:14 
Questiontree view & XML? Pin
sajid.salim.khan5-Jan-07 3:36
sajid.salim.khan5-Jan-07 3:36 
AnswerRe: tree view & XML? Pin
Not Active5-Jan-07 3:46
mentorNot Active5-Jan-07 3:46 
GeneralRe: tree view & XML? Pin
Pete O'Hanlon5-Jan-07 4:15
mvePete O'Hanlon5-Jan-07 4:15 
GeneralBut Sir Pin
sajid.salim.khan5-Jan-07 7:09
sajid.salim.khan5-Jan-07 7:09 
QuestionSet width of text part of combo Pin
Russell Jones5-Jan-07 2:29
Russell Jones5-Jan-07 2:29 

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.