Click here to Skip to main content
15,888,157 members
Home / Discussions / C#
   

C#

 
QuestionMFC-like programming Pin
perrin486911-Sep-07 1:39
perrin486911-Sep-07 1:39 
AnswerRe: MFC-like programming Pin
originSH11-Sep-07 2:00
originSH11-Sep-07 2:00 
GeneralRe: MFC-like programming Pin
perrin486911-Sep-07 2:24
perrin486911-Sep-07 2:24 
AnswerRe: datagridview update database error Pin
Rocky#11-Sep-07 1:41
Rocky#11-Sep-07 1:41 
GeneralRe: datagridview update database error Pin
Rocky#11-Sep-07 2:23
Rocky#11-Sep-07 2:23 
GeneralRe: datagridview update database error Pin
Rocky#11-Sep-07 2:58
Rocky#11-Sep-07 2:58 
QuestionDraw shape Pin
udhyakumarm11-Sep-07 0:23
udhyakumarm11-Sep-07 0:23 
AnswerRe: Draw shape Pin
Christian Graus11-Sep-07 0:56
protectorChristian Graus11-Sep-07 0:56 
QuestionGet the Selected item from List view control Pin
udhyakumarm11-Sep-07 0:21
udhyakumarm11-Sep-07 0:21 
AnswerRe: Get the Selected item from List view control Pin
rohitsrivastava11-Sep-07 0:39
rohitsrivastava11-Sep-07 0:39 
GeneralRe: Get the Selected item from List view control Pin
udhyakumarm11-Sep-07 2:11
udhyakumarm11-Sep-07 2:11 
QuestionInserting a row into excel spreadsheet Pin
lourensG11-Sep-07 0:17
lourensG11-Sep-07 0:17 
AnswerRe: Inserting a row into excel spreadsheet Pin
Vikram A Punathambekar11-Sep-07 1:18
Vikram A Punathambekar11-Sep-07 1:18 
GeneralRe: Inserting a row into excel spreadsheet Pin
lourensG11-Sep-07 1:23
lourensG11-Sep-07 1:23 
QuestionRegarding telnet Pin
praveenkumar palla10-Sep-07 23:41
praveenkumar palla10-Sep-07 23:41 
AnswerRe: Regarding telnet Pin
Ermak8611-Sep-07 0:08
Ermak8611-Sep-07 0:08 
QuestionRe: Regarding telnet Pin
praveenkumar palla23-Sep-07 18:46
praveenkumar palla23-Sep-07 18:46 
Thanks for the reply Pawel

But One issue,
First I connected to remote system(using IP,port) using TcpClient constructor.

then I red command (why because when I connected to that system it is prompting for the login and then password)

It returns the string

"????????\0??\0Microsoft (R) Windows (TM) Version 5.00 (Build 2195)\r\nWelcome to Microsoft Telnet Service \r\nTelnet Server Build 5.00.99206.1\n\rlogin: \0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"

then I wrote a command

string command="administrator";////////"administrator" that system login name
byte[] buf = System.Text.ASCIIEncoding.ASCII.GetBytes(command.Replace("\0xFF","\0xFF\0xFF"));
TcpClient.GetStream().Write(buf, 0, buf.Length);


Again I red command(actually it should return "Password:" )

but it returns
"administrator?\0Microsoft (R) Windows (TM) Version 5.00 (Build 2195)\r\nWelcome to Microsoft Telnet Service \r\nTelnet Server Build 5.00.99206.1\n\rlogin: \0\0\0\0\0\0\0\0\0\0\0\0\0\0\"
So not connected.....Please help me on this

Actually my application needs backend execution of commands at cmd.exe of remote systems (using IP) and should return command result.

Please help me on this

QuestionInserting a row into excel spreadsheet Pin
lourensG10-Sep-07 23:25
lourensG10-Sep-07 23:25 
AnswerRe: Inserting a row into excel spreadsheet Pin
pmarfleet10-Sep-07 23:27
pmarfleet10-Sep-07 23:27 
GeneralRe: Inserting a row into excel spreadsheet Pin
lourensG10-Sep-07 23:43
lourensG10-Sep-07 23:43 
GeneralRe: Inserting a row into excel spreadsheet Pin
pmarfleet11-Sep-07 0:50
pmarfleet11-Sep-07 0:50 
GeneralRe: Inserting a row into excel spreadsheet Pin
Jimmanuel11-Sep-07 4:59
Jimmanuel11-Sep-07 4:59 
QuestionHow to cancel selection char in RichText control ? Pin
Yanshof10-Sep-07 23:17
Yanshof10-Sep-07 23:17 
AnswerRe: How to cancel selection char in RichText control ? Pin
Giorgi Dalakishvili10-Sep-07 23:33
mentorGiorgi Dalakishvili10-Sep-07 23:33 
AnswerRe: How to cancel selection char in RichText control ? Pin
Ermak8610-Sep-07 23:38
Ermak8610-Sep-07 23:38 

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.