Using System.Diagnostic.process

  • Thread starter Thread starter Pankaj Pimple
  • Start date Start date
P

Pankaj Pimple

I am developing windows base appication in which there is
a form consists of one button control.
On clicking of that button the form will run telnet
process and connect to the another server through command
prompt.

After conecting to that server i want to do some
operations on that server for that i want to send data
from form.

For this purpose i tried to use sendkeys.send
("{ENTER}")method but it runs telnet again and again.
Can anyone help me how to run commands on cmd through
Windows form once i have started telnet process.

e.g on Command line once i have run telnet XYZ
it opens
username:
Password:

How should i provide it??
 
Pankaj Pimple said:
I am developing windows base appication in which there is
a form consists of one button control.
On clicking of that button the form will run telnet
process and connect to the another server through command
prompt.

After conecting to that server i want to do some
operations on that server for that i want to send data
from form.

For this purpose i tried to use sendkeys.send
("{ENTER}")method but it runs telnet again and again.
Can anyone help me how to run commands on cmd through
Windows form once i have started telnet process.

e.g on Command line once i have run telnet XYZ
it opens
username:
Password:

See:

<http://www.mvps.org/dotnet/dotnet/samples/miscsamples/downloads/RedirectConsole.zip>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top