Is this possible?

Hi,

I don't need to know how to do this, just if it is possible.  

This is what I would like to do:
Using VB.NET or C#.NET I would like to create a program that opens a Telnet session program that is already on the machine.  From there it will type keys that I will pre-set.  Then I want this program to execute a dts package, this can be done from a command prompt.  

Thanks a lot for your time.  The answer to this question is needed urgently.
LVL 1
jjrr007Asked:
Who is Participating?
 
Mike TomlinsonMiddle School Assistant TeacherCommented:
Yes, it should be possible...

Use Process.Start() to open the Telnet program and the command prompt application.

Then use SendKeys.Send() to send the keys.
You may need Win APIs such as keybd_event() to make it work properly though.
Or even PostMessage() to send input directly to a control in the target app.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.